mina_addChain
This method is used to add a custom chain to Auro Wallet.
Params
type AddChainArgs = {
// the GraphQL URL that need add.
readonly url: string
// custom name.
readonly name: string
}Result
type ChainInfoArgs ={
// current networkID, now will return mina:mainnet, mina:testnet, mina:berkeley
networkID:string,
}
interface ProviderError extends Error {
message: string; // error message.
code: number; // error code.
data?: unknown; // error body.
}
Promise<ChainInfoArgs | ProviderError>Errors
Example
Request
Result
Last updated