Get Networks

Once an application is connected to Martian wallet via connect method, an app can fetch registered networks using window.martian.getNetworks()and it will return a Promise that resolves when the request is successful.

Below is an example code describing the way to get networks.

const networks = await window.martian.getNetworks();
// networks
    "Mainnet": [],
    "Testnet": [],
    "Devnet": [],
    "Custom": []

Last updated