Network: Stellar Testnet
HyperDex runs on Stellar Testnet only. All swaps, maker pools and quotes use free test funds from Friendbot. Nothing on HyperDex moves real money.
deploy_pool, inventory deposit and a live quoting session. Backend: https://backend-production-c4e14cb9.up.railway.app. See Maker Registration to start.Network details
| Testnet | |
|---|---|
| Passphrase | Test SDF Network ; September 2015 |
| Soroban RPC | https://soroban-testnet.stellar.org |
| Horizon | https://horizon-testnet.stellar.org |
| Backend | https://backend-production-c4e14cb9.up.railway.app |
| Explorer | stellar.expert/explorer/testnet |
| Funds | Test funds — free from Friendbot |
Wrong-network detection
After connecting, HyperDex compares the wallet's reported network passphrase with Stellar Testnet. On a mismatch a banner names the connected wallet and that it should be on Testnet, and signing is blocked before the wallet is ever opened.
Wallets that do not expose a network (hardware devices, some bridges) return null and are allowed through — the check runs again at signing time. This matters: a signature produced against the wrong passphrase is rejected on-chain as txBadAuth, after the user has already approved it.
Environment variables
The frontend reads NEXT_PUBLIC_TESTNET_* variables first and falls back to the un-prefixed ones.
NEXT_PUBLIC_TESTNET_STELLAR_RPC_URL=https://soroban-testnet.stellar.org
NEXT_PUBLIC_TESTNET_HORIZON_URL=https://horizon-testnet.stellar.org
NEXT_PUBLIC_TESTNET_BACKEND_URL=https://backend-production-c4e14cb9.up.railway.app
NEXT_PUBLIC_TESTNET_POOL_REGISTRY_CONTRACT=...
NEXT_PUBLIC_TESTNET_QUOTE_VERIFIER_CONTRACT=...
NEXT_PUBLIC_TESTNET_MAKER_POOL_FACTORY_ADDRESS=...
NEXT_PUBLIC_TESTNET_FEE_DISTRIBUTOR_CONTRACT=...
NEXT_PUBLIC_TESTNET_USDC_CONTRACT=...
NEXT_PUBLIC_TESTNET_EURC_CONTRACT=...
NEXT_PUBLIC_TESTNET_ADMIN_ADDRESS=...process.env.NEXT_PUBLIC_X expressions. Every variable is spelled out literally in lib/networks.ts; a process.env[key] lookup resolves to undefined in the browser.Getting testnet funds
Fund an account with XLM from Friendbot, then add trustlines and acquire Circle's testnet USDC/EURC. Note the two assets have different testnet issuers — USDC is issued by GBBD47IF… (centre.io) and EURC by GB3Q6QDZ… (circle.com).
# Fund a testnet account
curl "https://friendbot.stellar.org/?addr=<YOUR_G_ADDRESS>"
# Or via the CLI
stellar keys generate my-taker --network testnet --fundRunning the testnet stack locally
# 1. Backend pointed at testnet (backend/.env)
STELLAR_NETWORK=testnet
STELLAR_RPC_URL=https://soroban-testnet.stellar.org
HORIZON_URL=https://horizon-testnet.stellar.org
# ...testnet contract addresses
cd backend && npm run dev # -> port 4000
# 2. Bootstrap a maker end-to-end (apply, approve, signer key, deploy pool)
bash scripts/bootstrap-testnet-maker.sh
# -> writes maker-sdk/.env with the API key, signer seed and pool address
# 3. Start the maker, then the frontend
cd maker-sdk && npm run dev
cd frontend && npm run dev # -> http://localhost:3000