---
description: Returns the current network id. The API credit value for this method is 100.
---

# net\_version

1.  #### Parameters- This method does not accept any parameters



```bash
curl https://Krypc-End Point URL/ \
  -X POST \
  -H "Content-Type: application/json" \
  --data '{"jsonrpc":"2.0","method":"net_version","params":[],"id":67}'

```

2. #### Returns

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

    * 1 - ethereum mainnet&#x20;
    * 2 - morden testnet (deprecated)&#x20;
    * 3 - ropsten testnet&#x20;
    * 4 - rinkeby testnet&#x20;
    * 5 - goerli testnet&#x20;
    * 11155111 - sepolia testnet&#x20;
    * 10 - optimism mainnet&#x20;
    * 69 - optimism kovan testnet&#x20;
    * 42 - kovan testnet&#x20;
    * 137 - matic/polygon mainnet&#x20;
    * 80001 - matic/polygon mumbai testnet&#x20;
    * 250 - fantom mainnet&#x20;
    * 100 - xdai mainnet&#x20;

    56 - bsc mainnet
