JSON RPC
eth_chainId
POST
Returns the chain ID of current network
Body
number
Serves as a unique identifier for the request
string
Indicates the version of JSON-RPC being used
string
Represents the name of the remote procedure or method to be called
array
Contains the list of parameters passed to the remote method
Response
number
Returns unique identifier for the request
string
Returns the version of JSON-RPC being used
string
Returns hexadecimal value as a string representing the integer of the current chain id