Documentation / API Reference
API Reference
AnchorFX exposes a public, read-only REST + SSE API for escrow data, FX rates, analytics, and audit — plus an authenticated fee-sponsorship endpoint for gasless settlement. The interactive reference lives at the live API Reference page.
Base URL
https://anchorfx.vercel.appEndpoints
GET /api/escrowsList all escrows (optional ?contract= override).
GET /api/ratesLive FX rates (optional ?oracle= override).
GET /api/fxrouteQuote a corridor: ?from=US&to=PH&amount=1000.
GET /api/analyticsOn-chain analytics by escrow status + volume.
GET /api/healthRPC + contract health check.
GET /api/auditAudit trail of contract events.
GET /api/eventsServer-Sent Events stream of live events.
GET /api/exportExport all escrows as CSV or JSON.
POST /api/sponsorFee sponsorship — pay network fee for gasless users.
GET /api/feedbackIn-app product feedback (session-scoped).
Example
curl — live escrows
curl -s https://anchorfx.vercel.app/api/escrows | jq
{
"escrows": [{ "id": 1, "sender": "G...", "status": "Settled" }],
"count": 71
}INFO
Rate-limited
All public endpoints are rate-limited per IP and validated against the on-chain contract.