net_version - Optimism

Returns the current network id.

Path Params
string
required
Defaults to docs-demo

For higher throughput, create your own API key

Body Params
integer
Defaults to 1
string
Defaults to 2.0
string
Defaults to net_version
Response

Response body
object
integer
string
string

The current network id. 1 - Ethereum Mainnet, 2 - Morden Testnet (deprecated), 3 - Ropsten Testnet, 4 - Rinkeby Testnet, 42 - Kovan Testnet,

1 2 3 4 42

Language
URL
Click Try It! to start a request and see the response here! Or choose an example:
application/json
ReadMe
Support Hub