Skip to main content
POST
eth_chainId

Body

application/json
jsonrpc
string
default:2.0
required

JSON-RPC version

method
string
default:eth_chainId
required

The method to call

id
integer
default:1
required

Request identifier

params
any[]

Parameters (empty for this method)

Response

200 - application/json

Returns the chain ID in hexadecimal format

jsonrpc
string
Example:

"2.0"

id
integer
Example:

1

result
string

Hexadecimal representation of the current blockchain network's chain ID

Example:

"0x144"