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
NoneReturns
chainId (string)Request
{
"jsonrpc": "2.0",
"method": "eth_chainId",
"params": [],
"id": 1
}curl https://rpc.dysnomia.icu -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"eth_chainId","params":[],"id":1}'Response
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x171"
}Last updated