chainId
const chainId = window.phantom.ethereum.chainId; console.log(chainId); // "0x1" // hexidecimal representation of Ethereum Mainnet
Was this page helpful?