Skip to content

eth_chainId

Returns the current chain id.

request example

{
  "jsonrpc": "2.0",
  "id": 0,
  "method": "eth_chainId",
  "params": []
}

response example

{
  "id": 0,
  "jsonrpc": "2.0",
  "result": "0x1a4"
}