Get chain ID

reading
eth_chainId
Returns the chain ID of the current network.