network

Get network

const network = await msafe.network();

network return current network as a string. Based on the MSafe environment being connected, the function will return 'Mainnet' 'Testnet' or 'Devnet'.

Example:

network
import { MSafeWallet } from "msafe-wallet";

const msafe = await MSafeWallet.new();
// Based on the MSafe environment, return "Mainnet", "Testnet", or "Devnet".
const network:string = await msafe.network();

Last updated