mina_requestNetwork

This method is used to request the chain info of the Auro wallet.

Params

null

Result

type ChainInfoArgs ={
    // current networkID, now will return mina:mainnet, mina:devnet, zeko:testnet
    networkID:string
}

Promise<ChainInfoArgs>

Errors

null

Example

Request

await window.mina?.requestNetwork().catch((err: any) => err);

Result

{
  "networkID": "mina:mainnet"
}

Last updated