End-to-end recipes against the live API. Base URL in examples:
https://stellar-intel.vercel.app (swap for http://localhost:3000 in dev).
Endpoints and shapes are defined in code — see
app/api/anddocs/INTENT_API.md. The generated OpenAPI surface lives inlib/api/openapi.ts(npm run emit-openapi).
curl -s "https://stellar-intel.vercel.app/api/rates/usdc-ngn?amount=100" | jqReturns one row per anchor with exchangeRate, fee, totalReceived, source
(sep38 firm, sep24-fee/sep6-info indicative), plus an errors[] array
explaining any anchor that could not quote.
# 1. Build the intent, canonicalize, sha-256, ed25519-sign via Freighter (client-side).
# 2. POST the signed envelope:
curl -sX POST https://stellar-intel.vercel.app/api/intent/offramp \
-H 'content-type: application/json' \
-d '{
"intent": { "anchorId": "cowrie", "corridorId": "usdc-ngn", "amount": "100", "publicKey": "GAB…" },
"hash": "<64-char hex>",
"signature": "<base64>",
"publicKey": "GAB…"
}'See docs/INTENT_API.md for the exact canonicalization/signing
steps.
# One anchor
curl -s https://stellar-intel.vercel.app/api/reputation/cowrie | jq
# Per-corridor leaderboard
curl -s "https://stellar-intel.vercel.app/api/reputation/leaderboard?corridor=usdc-ngn" | jq
# History window
curl -s "https://stellar-intel.vercel.app/api/reputation/cowrie/history?window=30d" | jqScore formula: fillRate × (1 − slippage) ÷ (settleSeconds / 300) — see
docs/ANCHOR_REPUTATION.md.
Run the MCP server and let an agent price/compare, then sign with the user's
wallet to execute. See docs/MCP.md for the npx tsx scripts/mcp/server.ts
run command and tool list. The agent cannot spend without a user signature.
Read anchor scores directly from the Soroban contract
(contracts/reputation/) from a consumer contract. The
entrypoints are in docs/ORACLE_SPEC.md. (A TypeScript read
helper + JS/Python examples are roadmap deliverables.)
node scripts/anchor-survey.mjs # human summary
node scripts/anchor-survey.mjs --json # machine outputClassifies directory anchors by SEP support — see
docs/SEP_COMPLIANCE.md.