Testnet is a full Nexwest network with the same order book, margin engine, and API. It exists so you can break things without losing money.
Network settings
| Field | Mainnet | Testnet |
|---|---|---|
| Chain ID | 7777 | 7778 |
| RPC | https://rpc.nexwest.app | https://rpc.testnet.nexwest.app |
| REST | https://api.nexwest.app | https://api.testnet.nexwest.app |
| WebSocket | wss://api.nexwest.app/ws | wss://api.testnet.nexwest.app/ws |
| Explorer | https://explorer.nexwest.app | https://explorer.testnet.nexwest.app |
Separate state
Testnet balances, orders, and positions are completely separate from mainnet. Never point production keys at testnet, and never assume a testnet address exists on mainnet.
Get test funds
- Connect a wallet on testnet.
- Open Faucet.
- Claim 1,000 test USDC and 10 test NXW per address per day.
- Wait for the faucet transaction to finalize; the balance appears in Perps.
The faucet is rate-limited by address and IP. If you need a larger amount for load testing, request a builder allocation through the grants program.
Differences from mainnet
- Leverage limits are the same, but some long-tail markets may be unavailable.
- Funding intervals are accelerated for testing: one hour on mainnet, five minutes on testnet.
- Liquidation parameters are identical, but the backstop vault has a smaller balance.
- Historical data is retained for 30 days, then pruned.
Test a full flow
# 1. Check the testnet book
curl -s https://api.testnet.nexwest.app/info \
-H "Content-Type: application/json" \
-d '{"type":"l2Book","coin":"BTC-PERP"}'
# 2. Place a test order with the SDK
npx tsx scripts/place-test-order.tsDo not use mainnet keys
Generate a dedicated testnet key. Treat testnet as a public environment: anything you sign can be replayed by anyone watching the chain.
Reset an account
Testnet accounts can be reset from Settings → Developer → Reset testnet account. This cancels open orders, closes positions at mark price, and restores the faucet balance. Resets are irreversible.