API Reference
Endpoints
All endpoints are available at https://api.fxjrin.com. Two endpoints require x402 payment; the rest are free.
GETFREE
/
Returns API version, available endpoints, and pricing information.
GETFREE
/health
Returns server status, network, and server wallet public key.
GET0.001 USDC
/defi/yield/best
Returns the best yield strategy for a given asset. APY is fetched live from Blend Finance smart contracts via Soroban RPC — not cached.
Query parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
| asset | string | USDC | Asset to find yield for. USDC or XLM. |
| amount | number | 1000 | Amount to deposit (used for sizing). |
GET0.001 USDC
/defi/swap/best
Returns the optimal swap route by comparing quotes from three sources: SDEX Orderbook, Stellar DEX pathfinder, and AMM pools — in real time.
Query parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
| from | string | XLM | Source asset ticker. |
| to | string | USDC | Target asset ticker. |
| amount | number | 100 | Amount of source asset to swap. |