Skip to main content

net_version RPC Method

Returns the current network id.

Updated on
Mar 27, 2026

Parameters

This method does not accept any parameters

Returns

result
string

The current network id as a string. Common values include:

127001 - Gravity Mainnet
1625 - Gravity Alpha Mainnet
1 - Ethereum Mainnet
11155111 - Sepolia Testnet
Request
Response
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": "127001"
5
}
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": "127001"
5
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free