Comment on page
eth_chainId
Returns the currently configured chain ID, a value used in replay-protected transaction signing as introduced by EIP-155.
None
result
- hexadecimal value in string format which represents an integer of the chain.curl --location 'https://rpc.eth.gateway.fm' \
--header 'Content-Type: application/json' \
--data '{"method":"eth_chainId","params":[],"id":1,"jsonrpc":"2.0"}'
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x1"
}
Last modified 7mo ago