Real-time fiat corridor health monitoring and smart routing for Stellar anchors.
AnchorFlow continuously probes anchors across every registered corridor, aggregates live fee and reliability data, and exposes a routing API that always returns the best available anchor for a given asset pair and destination country. A Soroban smart contract acts as the on-chain source of truth — health attestations are written every epoch and queryable by any contract on Stellar, with no trust in AnchorFlow's server required.
Organization: StellarForge — forging the infrastructure layer of the Stellar ecosystem.
License: MIT · Built on Stellar
Stellar's anchor network enables fiat settlement across 60+ countries, but it is largely unmonitored. Developers often hardcode one anchor per corridor and have little visibility when a service degrades. SEP-24 flows can silently fail, fee estimates drift over time, and there is no public infrastructure that tells developers or end users:
- Whether a corridor is operational
- Which anchor currently offers the best route
- What the real cost of a transfer is
- How reliable a corridor has been historically
- Which fallback route should be used when an anchor is unavailable
AnchorFlow solves this visibility gap.
| Without AnchorFlow | With AnchorFlow |
|---|---|
| HTTP 503 errors with no fallback | Automatic rerouting to the healthiest anchor |
| Fee data becomes outdated | Live normalized fee monitoring |
| One hardcoded anchor per corridor | Dynamic routing based on health scores |
| No reliability history | On-chain audit trail of anchor performance |
| Corridor outages discovered by users | Continuous proactive monitoring |
- API Key Management: generate, rotate, and revoke keys
- Wallet/Account Tracking: monitor accounts created via the SDK
- Activity Metrics: view transaction volumes and status
- Requests over time: visualize API request traffic trends
- Wallet creation analytics: monitor daily wallet creation volume
- Network Switching: testnet vs mainnet tracking
- Usage Monitoring: see platform-sponsored actions and account health
- Rust
- Stellar CLI
- Node.js 20+
- PostgreSQL
git clone https://github.com/stellarforge/anchorflow
cd anchorflowThis repo now includes a minimal auth flow and API client support for dev mode:
src/lib/api.jsadds request header support withx-request-idand automatic session refresh on401src/lib/session.jspersists auth state inlocalStorageand clears stale sessions gracefullysrc/hooks/useWallets.tsadds a wallet query hook that loads wallets from/api/walletssrc/app/api/auth/refresh/route.ts,/api/wallets/route.ts, and/api/wallets/[id]/route.tssimulate auth-protected backend behavior for local testing
Run full smoke tests with:
npm testMIT License
Forging the infrastructure layer of the Stellar ecosystem.