eth_chainId | Arbitrum Method
POSThttps://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
- application/json
Body
id Id (integer)
Default value:
1
jsonrpc JsonRpc (string)
Default value:
2.0
method Method (string)
Default value:
eth_chainId
Responses
- 200
Returns integer of the current chain ID.
- application/json
- Schema
- Example (auto)
Schema
id integer
jsonrpc string
result string
{
"jsonrpc": "2.0",
"id": 1,
"result": "0xb1770efb14906e509893b6190359658208ae64d0c56e22f748a1b0869885559e"
}
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
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"
}'
ResponseClear