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

Method: POST eth_chainId

dropdown

方法 RPC eth_chainId 例如 Rsk

POST eth_chainId

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

Parameters

-

Request

curl --location --request POST 'https://rsk.getblock.io/mainnet/' \
--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": "0x1e"
}