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

# net_version | Hyperliquid EVM

> Returns the current network ID for the Hyperliquid EVM. Use this to identify which network the client is connected to. This method takes no parameters.

<Info>
  This method is available on Chainstack. Not all Hyperliquid methods are available on Chainstack, as the open-source node implementation does not support them yet — see [Hyperliquid methods](/docs/hyperliquid-methods) for the full availability breakdown.
</Info>

Returns the current network ID for the Hyperliquid EVM. Use this to identify which network the client is connected to.

## Parameters

This method takes no parameters.

## Returns

Returns the network ID as a string. For Hyperliquid mainnet, this is `"999"`.

## Example request

<CodeGroup>
  ```shell Shell theme={"system"}
  curl -X POST \
    -H "Content-Type: application/json" \
    -d '{"jsonrpc":"2.0","method":"net_version","params":[],"id":1}' \
    https://hyperliquid-mainnet.core.chainstack.com/4f8d8f4040bdacd1577bff8058438274/evm
  ```

  ```python Python (web3.py) theme={"system"}
  from web3 import Web3

  w3 = Web3(Web3.HTTPProvider("YOUR_CHAINSTACK_ENDPOINT"))

  network_id = w3.net.version
  print(network_id)
  ```

  ```javascript JavaScript (ethers.js) theme={"system"}
  import { JsonRpcProvider } from "ethers";

  const provider = new JsonRpcProvider("YOUR_CHAINSTACK_ENDPOINT");

  const networkId = await provider.send("net_version", []);
  console.log(networkId);
  ```

  ```typescript TypeScript (viem) theme={"system"}
  import { createPublicClient, http } from "viem";

  const client = createPublicClient({
    transport: http("YOUR_CHAINSTACK_ENDPOINT"),
  });

  const networkId = await client.request({ method: "net_version" });
  console.log(networkId);
  ```
</CodeGroup>

<Note>
  **Use your own endpoint in your code.** The code examples use a placeholder Chainstack endpoint (YOUR\_CHAINSTACK\_ENDPOINT) — replace it with your own Hyperliquid node endpoint from the [Chainstack console](https://console.chainstack.com/). The curl above uses a shared public endpoint for quick checks only; do not use it in production.
</Note>

Example response:

```json theme={"system"}
{"jsonrpc":"2.0","id":1,"result":"999"}
```

## Use cases

* **Network verification** — Confirm connection to Hyperliquid before transactions
* **Wallet configuration** — Configure wallets to recognize Hyperliquid network
* **dApp development** — Build network-aware decentralized applications
* **Multi-network support** — Support multiple EVM networks with proper identification


## OpenAPI

````yaml openapi/hyperliquid_node_api/hyperevm/evm_net_version.json post /evm
openapi: 3.0.0
info:
  title: Hyperliquid EVM API - net_version
  version: 1.0.0
servers:
  - url: >-
      https://hyperliquid-mainnet.core.chainstack.com/4f8d8f4040bdacd1577bff8058438274
security: []
paths:
  /evm:
    post:
      summary: net_version
      description: >-
        Returns the current network ID. This method is used to identify which
        Ethereum network the client is connected to.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - jsonrpc
                - method
                - id
              properties:
                jsonrpc:
                  type: string
                  enum:
                    - '2.0'
                  default: '2.0'
                  description: JSON-RPC version
                method:
                  type: string
                  enum:
                    - net_version
                  default: net_version
                  description: The RPC method name
                params:
                  type: array
                  default: []
                  description: Parameters for the method (empty array for net_version)
                id:
                  type: integer
                  default: 1
                  description: Request identifier
            example:
              jsonrpc: '2.0'
              method: net_version
              params: []
              id: 1
      responses:
        '200':
          description: Successful response with network ID
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                    description: JSON-RPC version
                  id:
                    type: integer
                    description: Request identifier
                  result:
                    type: string
                    description: The current network ID as a string
              example:
                jsonrpc: '2.0'
                id: 1
                result: '999'

````