Get ChainId

This method is used to get current ChainId. It returns a number.

Example:

If you test with our partner network, you need to change 'Testnet' to url 'https://partner.m-safe.io'.

See example in Integration test.

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

const msafe = await MSafeWallet.new();
const account = await msafe.chainId();  // 1

Last updated