Getting Started

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.

Maker onboarding is open in beta on testnet: Every onboarding step runs end to end against the deployed testnet contracts — application, API key, 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
PassphraseTest SDF Network ; September 2015
Soroban RPChttps://soroban-testnet.stellar.org
Horizonhttps://horizon-testnet.stellar.org
Backendhttps://backend-production-c4e14cb9.up.railway.app
Explorerstellar.expert/explorer/testnet
FundsTest 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=...
Do not refactor into a dynamic lookup: Next.js only inlines statically analysable 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 --fund

Running 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
Rebuildable from scratch: The bootstrap script is non-interactive and idempotent — if the pool already exists it reads it back from the factory and re-syncs the registry signer key, so the testnet environment can be torn down and rebuilt at any time.
HyperDex | Trade Without Limits