eth_chainId - Ethereum
Recalls the new configured chain id, which value will come in handy for replay-protected transaction realization as in EIP-155 suggestions
Last updated
Recalls the new configured chain id, which value will come in handy for replay-protected transaction realization as in EIP-155 suggestions
The received chain ID must fit the information in the actual known head block. It ensures that the user can apply the information for transactions’ assignment.
No parameters.
QUANTITY - large integer of the current chain id.
Here is a typical appliance example.
curl https://eth-mainnet.rpcfast.com/?api_key=<key> \
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"eth_chainId","params":[],"id":1}'
Last updated
{"jsonrpc":"2.0","id":1,"result":"0x1"}