Skip to main content

eth_chainId | Arbitrum Method

POST 

https://arbitrum.callstaticrpc.com/:apiKey

Returns the currently configured chain ID, a value used in replay-protected transaction signing as introduced by EIP-155.

Request

Path Parameters

    apiKey string
    Default value: docs-demo

Body

    id Id (integer)
    Default value: 1
    jsonrpc JsonRpc (string)
    Default value: 2.0
    method Method (string)
    Default value: eth_chainId

Responses

Returns integer of the current chain ID.
Schema
    id integer
    jsonrpc string
    result string
curl -L 'https://arbitrum.callstaticrpc.com/:apiKey' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"id": 1,
"jsonrpc": "2.0",
"method": "eth_chainId"
}'
Request Collapse all
Base URL
https://arbitrum.callstaticrpc.com
Parameters
— path
Body
{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "eth_chainId"
}
ResponseClear

Click the Send API Request button above and see the response here!