Skip to main content
POST
net_version
Arc API method that returns the current network ID. Arc Mainnet is 5042 and Arc Testnet is 5042002. The network ID matches the chain ID on both networks.
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 network ID as a decimal string (5042 for Arc Mainnet, 5042002 for Arc Testnet)

net_version code examples

Body

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

Response

200 - application/json

Returns the result of net_version.

jsonrpc
string
id
integer
result
string
Last modified on September 16, 2026