Learn/Data API

Hyperliquid Testnet: Faucet, API URLs, Chain ID and SDK Setup

How to use the Hyperliquid testnet: get 1,000 mock USDC from the faucet, the testnet app, API and WebSocket URLs, the HyperEVM chain ID and RPC, and SDK setup.

By Hyperdash

, 6 min read

Hyperliquid testnet guide

The Hyperliquid testnet is a separate copy of the Hyperliquid chain where tokens have no value. Developers use it to test trading bots, API integrations and HyperEVM contracts before going live. Wallets that have deposited on mainnet can claim 1,000 mock USDC from the testnet faucet, and every API request works the same way against the testnet URL.

This guide covers the faucet, the testnet addresses, the HyperEVM settings, SDK setup and how testnet differs from mainnet.

What is the Hyperliquid testnet?

The testnet runs the same software as Hyperliquid mainnet, with its own state, its own markets and mock funds. It has both layers of the chain: HyperCore, with the order books and the trading API, and HyperEVM, the smart contract layer. New features often appear on testnet first. At the time of writing, for example, the official docs mark the HIP-4 deployer actions as testnet-only.

Hyperliquid testnet and mainnet addresses
TestnetMainnet
Trading apphttps://app.hyperliquid-testnet.xyzhttps://app.hyperliquid.xyz
API (info and exchange)https://api.hyperliquid-testnet.xyzhttps://api.hyperliquid.xyz
WebSocketwss://api.hyperliquid-testnet.xyz/wswss://api.hyperliquid.xyz/ws
HyperEVM JSON-RPChttps://rpc.hyperliquid-testnet.xyz/evmhttps://rpc.hyperliquid.xyz/evm
HyperEVM chain ID998999
Faucethttps://app.hyperliquid-testnet.xyz/dripNone
Source: Hyperliquid docs (API, HyperEVM and testnet faucet pages).

How do you get testnet USDC on Hyperliquid?

Claim it from the faucet at https://app.hyperliquid-testnet.xyz/drip. The faucet gives 1,000 mock USDC, and only to addresses that have already deposited on mainnet. The rule is set out on the official testnet faucet page.

  1. Make sure the wallet has made a deposit on Hyperliquid mainnet.
  2. Open the testnet app and connect the same wallet.
  3. Open the drip page and claim the mock USDC.

Email logins need one extra step. The email login provider creates a different wallet address on mainnet and on testnet, so the testnet address has no mainnet deposit. Export the email wallet from mainnet, import it into a wallet extension such as Rabby or MetaMask, and connect that wallet to testnet.

How do you use the Hyperliquid API on testnet?

Send the same requests to the testnet URL. The official API documentation writes every example against mainnet, and notes that the same requests work against https://api.hyperliquid-testnet.xyz. This returns the mid price of every testnet market:

curl -X POST https://api.hyperliquid-testnet.xyz/info -H "Content-Type: application/json" -d '{"type": "allMids"}'

Market data needs no key. Placing orders needs a signature, either from the wallet itself or from an API wallet the account has approved. Testnet API wallets are created in the testnet app, at https://app.hyperliquid-testnet.xyz/API. The request types, rate limits and history caps are explained in Hyperliquid API Explained.

How do you point the Python SDK at testnet?

Pass the testnet URL constant when you create the client. The official Python SDK ships both URLs in hyperliquid.utils.constants:

from hyperliquid.info import Info from hyperliquid.utils import constants info = Info(constants.TESTNET_API_URL, skip_ws=True) print(info.user_state("0xYOUR_ADDRESS"))

The Exchange class takes the same base URL, and the SDK signs for the matching chain: testnet actions are signed with a testnet flag, so a signature made for testnet is not valid on mainnet and the reverse. Install the SDK with pip install hyperliquid-python-sdk.

How do you connect to the HyperEVM testnet?

Add a custom network to an EVM wallet or tool with chain ID 998 and the RPC URL https://rpc.hyperliquid-testnet.xyz/evm. HYPE is the gas token and has 18 decimals on both networks. The HyperEVM docs list the differences between the two networks, and the JSON-RPC page lists the supported methods. The default RPC serves the latest state only and has no WebSocket support.

To move testnet HYPE from HyperCore to HyperEVM, send it to the system address 0x2222222222222222222222222222222222222222, the same as on mainnet. The dual block architecture and CoreWriter work the same way on testnet, so contracts that interact with HyperCore can be tested end to end.

How is the Hyperliquid testnet different from mainnet?

Hyperliquid testnet vs mainnet
TestnetMainnet
FundsMock USDC from the faucet, no valueReal assets
Asset IDsOwn IDs (HYPE token ID 1105, spot ID 1035)Own IDs (HYPE token ID 150, spot ID 107)
HyperEVM chain ID998999
SigningSigned for testnetSigned for mainnet
MarketsIncludes test deployments such as `test:ABC`Live markets
LiquidityUsually thin; prices can differ from mainnetLive order books
Source: Hyperliquid docs, asset IDs page and Python SDK.

Two differences catch most integrations. First, asset IDs are different, so never hard-code IDs from one network into the other; read them from meta and spotMeta on each network (asset IDs). Second, testnet books are thin, so fills and slippage on testnet say little about execution on mainnet.

Can you run a Hyperliquid node on testnet?

Yes. The official node repository supports both networks. Set the chain to testnet in ~/visor.json with {"chain": "Testnet"} and download the testnet binary from binaries.hyperliquid-testnet.xyz. More on node types is in RPC Nodes Explained.

Does the Hyperdash Data API work on testnet?

No. The Hyperdash Data API serves Hyperliquid mainnet data from Hyperdash's own nodes, and its docs list no testnet endpoint. A common setup is to build and test order logic on the Hyperliquid testnet, and use the Data API for the mainnet history a strategy is designed on: fills, candles, liquidations and order books. The launch post, Hyperdash Data API Is Live, covers what it includes.

Test your bot with your AI agent on mainnet data

Your AI agent can answer "What were BTC's hourly candles and funding rates on Hyperliquid mainnet over the last 24 hours?" so your testnet bot has real numbers to check against.

For more, read the Hyperliquid API explained and how to build on Hyperliquid with Hyperdash.

FAQ

Is the Hyperliquid testnet free?

Yes. Testnet funds come from the faucet and have no value, and the testnet API needs no key for market data.

How much USDC does the Hyperliquid testnet faucet give?

1,000 mock USDC, to addresses that have deposited on mainnet.

Why does the testnet faucet not work for my wallet?

The address has no mainnet deposit. If you log in with email, your testnet address differs from your mainnet address; export the mainnet email wallet and connect it to testnet with a wallet extension.

What is the Hyperliquid testnet API URL?

https://api.hyperliquid-testnet.xyz for the info and exchange endpoints, and wss://api.hyperliquid-testnet.xyz/ws for WebSocket.

What is the HyperEVM testnet chain ID?

998. The RPC URL is https://rpc.hyperliquid-testnet.xyz/evm. Mainnet is chain ID 999.

Are testnet asset IDs the same as mainnet?

No. Read asset IDs from the testnet meta and spotMeta responses instead of reusing mainnet IDs.

Can I use mainnet API wallets on testnet?

No. Approve a separate API wallet in the testnet app, and sign with the testnet URL so the signature matches the chain.

Get started

Claim mock USDC from the testnet faucet, point your client at https://api.hyperliquid-testnet.xyz, and move to mainnet once your logic holds up. For mainnet history and analytics, get a Hyperdash Data API key and read the Quickstart.

Trade Smarter