eth_chainId
POST/
Returns the chain ID of the chain to which the node is connected.
Parameters:
This method doesn't accept any parameters.
Returns:
result
: a hex string representing the chain ID. For the Ronin mainnet,0x7e4
is returned.
Request
Query Parameters
apikey stringrequired
Your API key
- application/json
Body
id Id (integer)
Default value: 1
jsonrpc JsonRpc (string)
Default value: 2.0
method string
Default value: eth_chainId
Responses
- 200
Successful response
- application/json
- Schema
- Example (from schema)
Schema
jsonrpc string
id integer
result string
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x7e4"
}
Loading...
Was this helpful?
Happy React is loading...