# net\_version - Ethereum

## How to Use the net\_version Method

### **Parameters**

No parameters.

### **What you receive**

* String - An actual network id.
  * 1: Ethereum Mainnet
  * 56: BSC Mainnet

### Sample

Here is a typical appliance example.

#### Call

{% tabs %}
{% tab title="Curl" %}

```bash
curl https://eth-mainnet.rpcfast.com/?api_key=<key> \
    -X POST \
    -H "Content-Type: application/json" \
    -d '{"jsonrpc":"2.0","method":"net_version","params":[],"id":1}'

```

{% endtab %}
{% endtabs %}

#### Outcome

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