Skip to main content
POST
eth_chainId
Arc API method that returns the chain ID of the current network. Arc Mainnet is 5042 (0x13b2 in hexadecimal) and Arc Testnet is 5042002 (0x4cef52).
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 (0x13b2 for Arc Mainnet, 0x4cef52 for Arc 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 September 16, 2026