Intents Swap
v0.1.1Swap any token to any token across chains by deposit address.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
get_started Get started with Intents
Get step-by-step setup for accepting payments, swapping or routing, with the links you need. Includes signup, how to make a test key, the first test call and the docs. No account needed. Omit `goal` to get the guide for this endpoint's product.
| Parameter | Type | Description |
|---|---|---|
goal | string | accept_payments (Checkout), swap (Swap) or route (Route) |
whoami Who am I connected as
Show how this connection is authenticated: none, API key or OAuth, its mode, scopes and account. For Checkout accounts it adds the business name and status. Call it first to know whether account tools will work and whether payments are test or live.
search_docs Search the Intents docs
Search the Intents docs and get the best-matching pages with a snippet. Covers Intents Checkout, Intents Route, Intents Swap, webhooks, the API reference, error codes and agent setup; read a page in full with get_doc.
| Parameter | Type | Description |
|---|---|---|
query * | string | What you are looking for, in words |
limit | integer |
get_doc Read an Intents docs page
Read one Intents docs page as markdown. Pass a path (`/checkout/quickstart`, `/errors/INVOICE_NOT_OPEN`) or a full intents.fi/docs URL; `/llms.txt` lists every page. Only the docs host is fetched.
| Parameter | Type | Description |
|---|---|---|
page * | string | A docs path or URL |
explain_error Explain an Intents error code
Explain an Intents API error code and how to handle it. Pass the `error.code` from any API response or tool error, e.g. INVOICE_NOT_OPEN or LIVE_MODE_LOCKED; the answer is that code's docs page.
| Parameter | Type | Description |
|---|---|---|
code * | string | The error code, e.g. LIVE_MODE_LOCKED |
list_chains List supported chains
List every chain Intents supports, with its CAIP-2 ID, alias, VM, native asset and protocols. The count comes from the live registry. Use the `id` or `alias` wherever a tool asks for a chain.
list_assets Find routable assets
Find tokens Intents can route by symbol, name or contract address, optionally on one chain. Returns CAIP-19 IDs, decimals, USD price and protocols. Symbols are display-only: pass the `id` to quote tools, and convert amounts to base units with `decimals`.
| Parameter | Type | Description |
|---|---|---|
chain | string | CAIP-2 chain ID or alias, e.g. base |
limit | integer | |
q | string | Symbol, name or address, e.g. USDC |
quote_swap Quote a swap
Quote a swap between any two supported tokens, on any chains, with no account needed. Exact input: send `amount` (integer base units) of `from`, receive about `amountOut` of `to` and at least `minOut`, all-in. Assets are CAIP-19. Start it with create_swap.
| Parameter | Type | Description |
|---|---|---|
amount * | string | Exact input, in the `from` asset's base units |
from * | string | CAIP-19 of the asset you send |
to * | string | CAIP-19 of the asset you receive |
slippageBps | integer | Override; default is automatic (50 bps, 100 on long-tail tokens) |
create_swap Start a swap (deposit address)
Start a swap from a quote_swap quoteId and get a deposit address, exact amount and expiry. REAL FUNDS ON MAINNET: whoever sends that amount to that address swaps it; the output goes to `recipient` and a refund to `refundTo`. Confirm both addresses with the user first. Screened as on intents.fi/swap.
| Parameter | Type | Description |
|---|---|---|
quoteId * | string | |
recipient * | string | Where the swapped funds go, on the destination chain |
refundTo * | string | Where a refund goes, on the source chain |
swap_status Swap status
Get a swap's status, its steps with transaction hashes and, on refund or failure, why. awaiting_deposit → confirming → filling → completed, or refunded / failed / expired.
| Parameter | Type | Description |
|---|---|---|
orderId * | string |