📝 Share Your Feedback on Twitter and Claim 1M Free GetBlock Requests

avax
Avalanche (AVAX)

Method: POST eth_chainId

dropdown

方法 RPC eth_chainId 例如 Avalanche (AVAX)

POST eth_chainId

返回当前配置的链ID,这是EIP-155介绍的重播保护交易签名的值。

Parameters

-

Request

curl --location --request POST 'https://avax.getblock.io/mainnet/ext/bc/C/rpc' \
--header 'x-api-key: YOUR-API-KEY' \
--header 'Content-Type: application/json' \
--data-raw '{"jsonrpc": "2.0",
"method": "eth_chainId",
"params": [],
"id": "getblock.io"}'


Response

{
    "id": "getblock.io",
    "jsonrpc": "2.0",
    "result": "0xa86a"
}