net_version RPC Method
Parameters
This method does not accept any parameters
Returns
result
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
250 - fantom mainnet
100 - xdai mainnet
56 - bsc mainnet
13473 - Immutable-zkEVM testnet
168587773 - Blast Sepolia
80084 - Berachain bArtio
Request
1curl https://docs-demo.bera-bartio.quiknode.pro/ \2-X POST \3-H "Content-Type: application/json" \4--data '{"jsonrpc":"2.0","method":"net_version","params":[],"id":1}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free