
https://swap-api.sodae.io.
Quickstart
Your first quote and swap in two requests.
How routing works
Live state, native pricing and split routes in one transaction.
Quote
Price a swap and see the route it would take.
Swap
Get an unsigned transaction for the quoted route.
Streams
Live quotes, pool ticks and USD prices over WebSocket.
Venues
More than 100 DEX programs, priced natively.
TypeScript guide
Quote, swap, sign and send from a browser or Node.
Errors
Every error code, what it means and what to do.
What you get
Design
- Everything streams. Pool state comes from the live account and transaction firehose. Nothing is polled or cached from another aggregator, so a new pool is routable from its first trade.
- Native pricing. Each venue is quoted with its own curve, fee schedule and order book, in integer arithmetic. There is no simulation on the quote or swap path.
- One transaction. Split routes across several pools and hops compile into a single transaction that fits mainnet limits.
- No custody. The API never holds keys. It returns an unsigned transaction and your wallet signs it.