Skip to main content
Use the Stellar Aggregator to quote swaps and, when sender is present, receive a prepared TransactionEnvelope for signing.

Use This When

NeedUse
Quote a Soroban swap for contract compositionplatform=aggregator
Compare Soroban and Classic execution for a direct-user flowplatform=all
Return a prepared envelope with resource fee and footprintAdd sender and keep simulate=true
Build a token pickerGET /api/v1/tokens

Do Not Use This When

NeedUse instead
You need MultiversX swap transaction dataMultiversX Aggregator
You need Stellar lending account or pool behaviorStellar Lending
You already have an envelope and only need submissionSubmit through your Stellar RPC or wallet flow

Base URL

https://stellar-swap.xoxno.com
No API key is required; per-IP rate limits apply.

Flow

1

List or select tokens

Use /api/v1/tokens for routable token IDs. Prefer full C-strkeys or SEP-11 identifiers over aliases in deterministic flows.
2

Quote the route

Call /api/v1/quote with from, to, and exactly one of amount_in or amount_out.
3

Choose the execution plane

Keep platform=aggregator for composable Soroban flows. Use platform=all only when a user signs the final envelope directly.
4

Request and sign the envelope

Pass sender to receive transaction.envelopeXdr, a base64 XDR TransactionEnvelope.

Execution Planes

platformSourcesEnvelope behaviorUse when
aggregator (default)Soroswap, Aquarius, Phoenix, static SAC bridgesSoroban batch_executeA Soroban contract or app needs composable execution
sdexStellar SDEXClassic path payment routeA direct-user Classic flow controls envelope construction
allSoroban and Classic sourcesReturns only the winning quoteA direct-user UI wants a single displayed route
Classic SDEX operations do not compose inside another Soroban contract. Use platform=aggregator for Lending -> Aggregator flows.

Limits

ActionLimit or behavior
Any request100 requests per second per IP
Quote freshnessQuotes use the latest pool snapshot available to the service
Snapshot refreshSoroban stream loop about every 5 s, sanity resync every 60 s
Liquidity sourcesSoroswap, Aquarius, Phoenix, Stellar SDEX, static SAC bridges
Reverse quotesSingle-path only
Amount formatUse integer strings in the token’s smallest unit

Endpoints

EndpointMethodJob
/api/v1/quoteGETQuote a route and optionally return a prepared envelope
/api/v1/tokensGETList routable tokens from the current snapshot
/healthGETReturn service and snapshot status
/readyGETReturn readiness, including stale-snapshot failures

Next Steps

Quickstart

Fetch a quote, inspect the envelope, and submit it through Stellar tooling.

Quote endpoint

Parameters, response fields, errors, and executable examples.

Tokens endpoint

Token identifiers, decimals, and source metadata.

Integration guide

Handle prepared envelopes, fallback routes, retries, and errors.