API Reference
Data Sources
All price and yield data comes directly from Stellar mainnet for accuracy — regardless of which network is configured for payments.
| Data | Source | Network |
|---|---|---|
| Yield APY | Blend Finance smart contracts (Soroban) | Mainnet (on-chain) |
| Swap quotes | SDEX Orderbook + Stellar DEX pathfinder + AMM pool | Mainnet (real quotes) |
| XLM price | Stellar Horizon trade aggregations | Mainnet (real prices) |
| Orderbook spread | Stellar Horizon order book | Mainnet |
| 24h volume | Stellar Horizon trade aggregations | Mainnet |
| Payments | x402 protocol + local facilitator | Testnet or Mainnet |
Blend Finance
APY data is fetched directly from Blend Finance smart contracts on Stellar mainnet via Soroban RPC. Two pools are monitored and compared on every request:
Fixed V2~9.47% USDC
CAJJZSGMMM3PD7N33TAPHGBUGTB43OC73HVIK2L2G6BNGGGYOSSYBXBD
YieldBlox V2~0.07% USDC
CCCCIQSDILITHMM7PBSLVDT5MISSY7R26MNZXCX4H7J5JQ5FPIYOGYFS
Soroban RPC
ENDPOINT
https://soroban-rpc.creit.tech/
Provider: Creit Tech · Network: Stellar Mainnet
Stellar Horizon
All swap quotes, XLM price, volume, and spread data are fetched from Stellar's public Horizon API on mainnet. This ensures prices reflect real market conditions regardless of payment network.
HORIZON ENDPOINT
https://horizon.stellar.org
Swap quote sources
Every call to /defi/swap/best fetches quotes from all three sources simultaneously and returns the best output:
01
SDEX Orderbook
Direct orderbook matching — best for liquid pairs. Typically lowest slippage.
02
Stellar DEX pathfinder
Multi-hop path payments through intermediate assets.
03
AMM pool
Automated market maker liquidity pools on Stellar.
Explore