# net\_version

**Returns the current network id.**

[**Ethereum.org API Reference**](https://ethereum.org/en/developers/docs/apis/json-rpc/#net_version)

**Parameters**

None

**Returns**

`String` - The current network id.

The full list of current network IDs is available at [chainlist.org(opens in a new tab)↗](https://chainlist.org/). Some common ones are:

* `1`: Ethereum Mainnet
* `5`: Goerli testnet
* `11155111`: Sepolia testnet

## Example

#### Request

```
curl --request POST \
     --url https://endpoints.omniatech.io/v1/RPC_ENDPOINT \
     --header 'accept: application/json' \
     --header 'content-type: application/json' \
     --data '
{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "net_version"
}
'
```

#### Response

```
{
    "jsonrpc": "2.0",
    "id": 1,
    "result": "1"
}
```
