Change Network

Once an application is connected to Martian wallet via connect method, it can also request that user to change network using given api. It takes one parameter listed below:

  • nodeUrl: Node endpoint.

Below is an example code describing the way to change a network.

// change network
const nodeUrl = "";
const status = await window.martian.changeNetwork(nodeUrl);

Last updated