/ DEVELOPERS / API / ETH_CHAINID

eth_chainId

Returns the chain ID as a hex-encoded uint (used by EIP-155 for replay protection).

eth_chainId

Returns the chain ID as a hex-encoded uint (used by EIP-155 for replay protection).

eth_*category: metareturns: hex uint
Share link

Parameters

No parameters.

Response

Press Send Request to see a response.

Copy as

curl -X POST '/rpc' \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","method":"eth_chainId","params":[],"id":1}'