跳转到内容

eth_chainId

返回用于 EIP-155 重放保护签名的链 ID。

无。

QUANTITY — 当前链 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)

网络Chain ID(十六进制)Chain ID(十进制)
Ethereum0x11
BSC0x3856
Arbitrum One0xa4b142161
Base0x21058453
MethodCost
eth_chainId0 RU(免费)