Skip to content

eth_chainId

Returns the chain ID used for signing replay-protected transactions (EIP-155).

None.

QUANTITY — The current chain ID.

Terminal window
curl -X POST https://eth-mainnet.blockreq.com/v1/rpc/public \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"eth_chainId","params":[],"id":1}'
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x1"
}

0x1 = 1 (Ethereum Mainnet)

NetworkChain ID (Hex)Chain ID (Dec)
Ethereum0x11
BSC0x3856
Arbitrum One0xa4b142161
Base0x21058453
MethodCost
eth_chainId0 RU (free)