Intents Swap
Swap across chains, straight to your wallet. The consumer app at intents.fi/swap, how a swap works, and the public API behind it.
Intents Swap lets anyone swap tokens across 18 chains with no account: connect a wallet or send from any wallet or exchange, and receive straight to your own wallet.
It is an app for people, at intents.fi/swap, not an integration. To build cross-chain swaps into your own product, with your own API key and webhooks, use Intents Route. To get paid, use Intents Checkout.
How a swap works
Section titled “How a swap works”- Two ways to swap. Connect a wallet and sign, or send from any wallet or exchange to a one-time deposit address that stays open for 30 minutes.
- One quote, one total cost. Each swap is quoted across every route Intents can reach and the best one is used. The quote shows one total cost, around 0.4% on most swaps, with network fees included and a guaranteed minimum.
- Refunded if it can’t finish. If a swap can’t finish, the funds go back to the sender.
- Never custodial. Intents never holds the funds, and every step has an on-chain transaction on the swap’s status page.
- Screened. Wallets are screened before every quote and order, and a swap can be refused
(
SWAP_REFUSED).
The public API
Section titled “The public API”The app runs on a public API under /v0/swap/*: no API key, rate-limited per IP. It exists to
serve the Intents Swap app, and it is listed here so that what the app calls is documented. For
your own integration, use Intents Route.
| Step | Call |
|---|---|
| Quote a swap (exact input) | POST /v0/swap/quote |
| Start it: a deposit address, or the steps to sign | POST /v0/swap/orders |
| Wallet mode: report the signed transaction | POST /v0/swap/orders/{id}/submit |
| Follow it to the end | GET /v0/swap/orders/{id} |
| Live rate, history and stats for one pair | GET /v0/swap/pair/{pairKey} |
Errors you will meet
Section titled “Errors you will meet”| Code | HTTP | Means |
|---|---|---|
SWAP_REFUSED |
403 | The swap can’t be routed. No reason is given |
SWAP_PRICE_IMPACT_TOO_HIGH |
422 | The total cost would be over 15% of what is sent |
SWAP_UNAVAILABLE |
503 | Swaps aren’t available on this deployment right now |
QUOTE_EXPIRED |
410 | The quote is too old. Get a new one |
RATE_LIMITED |
429 | Too many requests from one IP. Wait a minute |
Every error has the same body; switch on error.code (errors).