Skip to main content

net_version RPC Method

Returns the current network id.

Updated on
Mar 18, 2026

Parameters

This method does not accept any parameters

Returns

result
string

The string value of current network id. Typical values are as follows:

1 - ethereum mainnet
2 - morden testnet (deprecated)
3 - ropsten testnet
4 - rinkeby testnet
5 - goerli testnet
11155111 - sepolia testnet
10 - optimism mainnet
69 - optimism kovan testnet
42 - kovan testnet
137 - matic/polygon mainnet
80001 - matic/polygon mumbai testnet
100 - xdai mainnet
56 - bsc mainnet
42161 - arbitrum one mainnet
421614 - arbitrum sepolia testnet
4663 - robinhood mainnet
46630 - robinhood testnet
Request
Response
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": "4663"
5
}
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": "4663"
5
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free