eth_chainId
Returns the chain ID of the current network as defined by EIP-155. Used to prevent replay attacks across different Ethereum networks.
Parameters
None
Returns
chainId (string)
Request
{
"jsonrpc": "2.0",
"method": "eth_chainId",
"params": [],
"id": 1
}
Response
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x171"
}
Last updated