> ## Documentation Index
> Fetch the complete documentation index at: https://docs.base.org/llms.txt
> Use this file to discover all available pages before exploring further.

# net_version

> Returns the current network ID as a string.

Returns the current network ID as a decimal string.

## Parameters

No parameters.

## Returns

<ResponseField name="result" type="string">
  The network ID as a decimal string. `"8453"` for Base Mainnet, `"84532"` for Base Sepolia.
</ResponseField>

## Example

<CodeGroup>
  ```json Request theme={null}
  {
    "jsonrpc": "2.0",
    "method": "net_version",
    "params": [],
    "id": 1
  }
  ```

  ```json Response (Base Mainnet) theme={null}
  {
    "jsonrpc": "2.0",
    "id": 1,
    "result": "8453"
  }
  ```
</CodeGroup>
