Ethereum
Ethereum params
To add EVM-compatible networks to the WELLDONE wallet, send the following object as a factor to params
.
Ethereum
interface ChainData {
// Identifier to distinguish the chain
chainId: string;
// The name of the chain to be displayed to the user.
chainName: string;
// RPC endpoint of the chain.
rpcUrls: Array<string>;
iconUrls: Array<string>;
nativeCurrency: {
name: string;
symbol: string;
decimals: number;
};
blockExplorerUrls: Array<string>;
}
Example
The following is an example that the addition of an EVM-compatible Ubiq testnet.
Click the Add Chain
button. You must first connect to your wallet using the dapp:accounts
method before using the dapp:addChain
method.
Live Editor
Result
Loading...