eth_chainId

Network: Arc · Mainnet · Chain ID 5042 (0x13b2)

Data: full node. Old-block state is not available on Arc; query recent blocks.

Counts as 1 request. See Request Counting.

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

Parameters

None.

Returns

QUANTITY — The current chain ID.

Request

{ "jsonrpc": "2.0", "method": "eth_chainId", "params": [], "id": 1 }

Response

{ "jsonrpc": "2.0", "id": 1, "result": "0x13b2" }

0x13b2 = 5042 (Arc)

Code Examples

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

Try It