v1

latestOpenAPI 3.0.02026-07-26541677.9 KB
Ethereum API

eth_chainId

Gets the current chain ID

post/eth_chainId

Request body

jsonrpcstring required

JSON-RPC version

methodstring required

The method to call

idinteger required

Request identifier

Response

Returns the chain ID in hexadecimal format

jsonrpcstring
idinteger
resultstring

Hexadecimal representation of the current blockchain network's chain ID

Example response

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": "0x144"
}