Get Network

This method can be used to fetch network name.

Below is an example code describing the way to fetch network name.

// Fetch network info
const network = await window.martian.network();
console.log(network);
// above code output
Testnet or Devnet or Custom

Last updated