eth_chainId
Returns the chain ID used for transaction signing at the current best block. None is returned if not available
Last updated
Returns the chain ID used for transaction signing at the current best block. None is returned if not available
web3.eth.getChainId([callback])Returns chain ID.
> web3.eth.getChainId().then(console.log);
> 1023Last updated