> For the complete documentation index, see [llms.txt](https://hydromancer.xyz/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hydromancer.xyz/docs/rest-api/testnet.md). Agents can also search and read this documentation through its [MCP server](https://hydromancer.xyz/docs/~gitbook/mcp).

# Testnet

Use Hydromancer on Hyperliquid testnet: URLs, API keys, limits and what's different from mainnet.

Hydromancer serves Hyperliquid testnet data on its own host, so you can build and test against testnet before you switch to mainnet.&#x20;

Requests, responses and errors work the same way as on mainnet.

#### **URLs**

|           | Mainnet                            | Testnet                                    |
| --------- | ---------------------------------- | ------------------------------------------ |
| REST      | <https://api.hydromancer.xyz/info> | <https://api-testnet.hydromancer.xyz/info> |
| WebSocket | wss\://api.hydromancer.xyz/ws      | wss\://api-testnet.hydromancer.xyz/ws      |

#### **API key**

Testnet uses its own API key. A mainnet key on the testnet host, or a testnet key on the mainnet host, returns `401 {"error":"Invalid API key"}`.&#x20;

{% hint style="info" %}
To get a testnet key, please reach out to us.
{% endhint %}

Authentication is the same as mainnet: `Authorization: Bearer <testnet key>` for REST and `?token=<testnet key>` for WebSocket.

#### **Testnet Rate limits**

Testnet has the same limits as your plan, counted separately: testnet requests don't use up your mainnet per-minute limit, and mainnet requests don't use up testnet's. Testnet usage does count toward your plan's monthly allowance.&#x20;

Check the `x-ratelimit-limit`, `x-ratelimit-remaining` and `x-ratelimit-cost` headers on any response; they work the same way as on mainnet.

#### **What is different on testnet**

* **Data comes from Hyperliquid testnet.** Markets, prices, asset indexes and addresses differ from mainnet, so don't reuse mainnet addresses or asset IDs in testnet requests.
* **History can have gaps.** Hyperliquid changes its testnet often, so testnet history may be missing some periods.
* **Some data needs time to build up.** A few requests that summarize the market over time, such as `currentDepth`, can return "not yet available" on testnet.

#### **Moving to mainnet**

Change the host to `api.hydromancer.xyz` and use your mainnet key. Request bodies stay the same, but update any testnet addresses and asset IDs.

**Related**

* [Hyperliquid testnet guide](https://hydromancer.xyz/blog/hyperliquid-testnet): faucets, API wallets, and what breaks when you move to mainnet.
