Documentation
Everything you need to understand, operate and integrate the StableRoute liquidity router.
StableRoute is a liquidity router for stablecoin and fiat-backed token pairs on Stellar. Operators register routing pairs (for example USDC → EURC), configure fees and bounds, and expose a quoting API that wallets, payment apps and treasuries can call to find the best path for a transfer.
Quote
Instant price, fee and minimum-received for any registered pair.
Govern
Per-pair fees, min/max amounts, cooldowns and liquidity limits.
Protect
Emergency pause, timelocked admin handover and an audit log.
StableRoute has three components, each in its own repository:
Frontend
Web console
Next.js app (this site) for quoting, pair management, stats and operator tools.
Backend
Routing API
Express + TypeScript service: pair registry, pricing engine, webhooks, API keys, metrics.
Contracts
Soroban router
Rust smart contract on Stellar that stores pairs, fees, bounds and pause state on-chain.
Browser / wallet / app
│ HTTPS (JSON)
▼
┌─────────────────────┐ ┌──────────────────────────┐
│ StableRoute API │ RPC │ StableRouteRouter │
│ (Express, Vercel) │ ─────▶ │ (Soroban, Stellar testnet)│
│ quotes · pairs · │ │ pairs · fees · bounds · │
│ webhooks · metrics │ │ pause · admin handover │
└─────────────────────┘ └──────────────────────────┘Base URL: https://stableroute-backend.vercel.app. The full, interactive reference (Swagger UI) is at https://stableroute-backend.vercel.app/docs and the raw OpenAPI spec at /openapi.yaml.
curl https://stableroute-backend.vercel.app/healthcurl -X POST https://stableroute-backend.vercel.app/api/v1/pairs \
-H "Content-Type: application/json" \
-d '{"source": "USDC", "destination": "EURC"}'curl https://stableroute-backend.vercel.app/api/v1/pairscurl "https://stableroute-backend.vercel.app/api/v1/quote?source_asset=USDC&dest_asset=EURC&amount=100"curl -X PATCH https://stableroute-backend.vercel.app/api/v1/pairs/USDC/EURC/fee_bps \
-H "Content-Type: application/json" \
-d '{"fee_bps": 30}'The StableRouteRouter Soroban contract is deployed on Stellar testnet.
Read-only calls you can try with the Stellar CLI:
stellar contract invoke --id CCKXEUALSDINT6FWCPZRK4BS5NJ5J5JBGM6GAKHSB6JAN7MOTWFI6IHD \ --source <your-key> --network testnet -- version stellar contract invoke --id CCKXEUALSDINT6FWCPZRK4BS5NJ5J5JBGM6GAKHSB6JAN7MOTWFI6IHD \ --source <your-key> --network testnet -- \ get_pair_info --source USDC --destination EURC