# 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](https://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](/docs/route). To get paid, use [Intents Checkout](/docs/checkout).

## 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`](/docs/errors/SWAP_REFUSED)).

## 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](/docs/route).

| Step | Call |
|---|---|
| Quote a swap (exact input) | [`POST /v0/swap/quote`](/docs/api/post-swap-quote) |
| Start it: a deposit address, or the steps to sign | [`POST /v0/swap/orders`](/docs/api/post-swap-orders) |
| Wallet mode: report the signed transaction | [`POST /v0/swap/orders/{id}/submit`](/docs/api/post-swap-orders-id-submit) |
| Follow it to the end | [`GET /v0/swap/orders/{id}`](/docs/api/get-swap-orders-id) |
| Live rate, history and stats for one pair | [`GET /v0/swap/pair/{pairKey}`](/docs/api/get-swap-pair-pairkey) |

## Errors you will meet

| Code | HTTP | Means |
|---|---|---|
| [`SWAP_REFUSED`](/docs/errors/SWAP_REFUSED) | 403 | The swap can't be routed. No reason is given |
| [`SWAP_PRICE_IMPACT_TOO_HIGH`](/docs/errors/SWAP_PRICE_IMPACT_TOO_HIGH) | 422 | The total cost would be over 15% of what is sent |
| [`SWAP_UNAVAILABLE`](/docs/errors/SWAP_UNAVAILABLE) | 503 | Swaps aren't available on this deployment right now |
| [`QUOTE_EXPIRED`](/docs/errors/QUOTE_EXPIRED) | 410 | The quote is too old. Get a new one |
| [`RATE_LIMITED`](/docs/errors/RATE_LIMITED) | 429 | Too many requests from one IP. Wait a minute |

Every error has the same body; switch on `error.code` ([errors](/docs/errors/)).

---

Source: https://intents.fi/docs/swap/ · The whole corpus: https://intents.fi/docs/llms-full.txt
