Add or Switch Chain
Scenarios for interact chain with Auro Wallet.
RequestNetwork
During initialization, zkApp can get current networkID by call requestNetwork
.
SwitchChain
SwitchChain
zkApp can switch chain by this method.
The following are the networkID that Auro supports by default. If you want to use other networkID, need to add network first, then use the target networkID as a parameter to switch.
Current support these networkID (default):
mina:mainnet
mina:devnet // Update from mina:testnet to mina:devnet from extension 2.3.1, App 2.1.0
zeko:testnet
Add Chain
If want to custom the adding chain or switch chain, can use this method. When the URL has been added, it will request to switch to chain corresponding to the URL.
Chain Event
This method is used to listen chain changes. When the Auro Wallet chain change, the event will be trigger.
Last updated