Skip to main content

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

Body

    id Id (integer)

    Default value: 1

    jsonrpc JsonRpc (string)

    Default value: 2.0

    method string

    Default value: eth_chainId

Responses

Successful response

Schema

    jsonrpc string
    id integer
    result string
Loading...