Skip to main content
POST
eth_chainId
Arc API method that returns the chain ID of the current network. The Arc mainnet chain ID is 4217 (0x1079 in hexadecimal). The Moderato testnet chain ID is 42431 (0xa5bf).
Get your own node endpoint todayStart for free and get your app to production levels immediately. No credit card required.You can sign up with your GitHub, X, Google, or Microsoft account.

Parameters

  • none

Response

  • result — the chain ID encoded as hexadecimal (0x1079 for Arc mainnet / 0xa5bf for Moderato testnet)

eth_chainId code examples

Body

application/json
id
integer
default:1
jsonrpc
string
default:2.0
method
string
default:eth_chainId
params
array

Response

200 - application/json

Returns the result of eth_chainId.

jsonrpc
string
id
integer
result
string
Last modified on August 3, 2026