Eth_chainId
Authorizations
api-keystringRequired
Body
jsonrpcstringRequiredExample:
JSON-RPC protocol version
2.0methodstringRequiredExample:
Name of the method to call
eth_chainIdparamsarrayRequired
This method does not require parameters. Use an empty array.
idintegerRequiredExample:
Unique identifier for the request
1Responses
200
Chain ID response
application/json
jsonrpcstringOptionalExample:
JSON-RPC protocol version
2.0idintegerOptionalExample:
ID matching the request
1resultstringOptionalExample:
The chain ID in hexadecimal string format. For example: "0x1" = Ethereum mainnet, "0x3" = Ropsten, "0x5" = Goerli, etc.
0x1post
/200
Chain ID response
Last updated