Intents Swap

v0.1.1
fi.intents/swap Checked 2 days ago Published 5 days ago

Swap 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.

ParameterTypeDescription
goalstringaccept_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.

ParameterTypeDescription
query *stringWhat you are looking for, in words
limitinteger

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.

ParameterTypeDescription
page *stringA 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.

ParameterTypeDescription
code *stringThe 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`.

ParameterTypeDescription
chainstringCAIP-2 chain ID or alias, e.g. base
limitinteger
qstringSymbol, 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.

ParameterTypeDescription
amount *stringExact input, in the `from` asset's base units
from *stringCAIP-19 of the asset you send
to *stringCAIP-19 of the asset you receive
slippageBpsintegerOverride; 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.

ParameterTypeDescription
quoteId *string
recipient *stringWhere the swapped funds go, on the destination chain
refundTo *stringWhere 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.

ParameterTypeDescription
orderId *string