Annex Docs
Search…
Get Network Name With Chain ID
Gets the name of an BSC network based on its chain ID.
  • chainId (string) The chain ID of the network.
  • RETURN (string) Returns the name of the Ethereum network.
1
console.log('Testnet : ', Annex.util.getNetNameWithChainId(3));
Copied!
Last modified 10mo ago
Copy link