eth_chainId

Returns the chain ID of the current network as a hexadecimal string.

Path parameters

apiKeystringRequired

Response

The chain ID of the current network in hexadecimal format.