Solana
Solana params
To add Solana-compatible networks or other networks to the WELLDONE wallet, send the following object as a factor to params
. This is the Universal Chain Standard proposed by WELLDONE Wallet.
Solana
interface RpcUrl {
providerName: string;
url: string;
}
interface Currency {
name: string;
symbol: string;
decimals: number;
address?: string;
}
interface ExplorerUrl {
name: string;
url: string;
standard?: string;
}
interface ChainData {
chainId: string;
chainName: string;
rpcUrls: Array<RpcUrl>;
nativeCurrencies: Array<Currency>;
feeCurrencies: Array<Currency>;
// (Optional)
blockExplorerUrls: Array<ExplorerUrl>;
// (Optional)
iconUrls: Array<string>;
slip44: string;
}
Example
Consider adding a Solana Devnet network to the WELLDONE wallet as an example. To add a Solana Devnet network to the WELLDONE Wallet, click the AddChain
button. You must first connect to your wallet using the dapp:accounts
method before using method.
Live Editor
Result
Loading...