Quote, then lock
funding_instructions ask for the quote’s
asset and amount, and the hosted checkout shows the same. There is no execute call: the route
runs automatically once the payment is confirmed, exactly as quoted. A moving market never
re-prices a locked quote.
Two kinds of quote
- Exact output (default)
- Exact input
Your amount is fixed. The quote says the most your user sends, including slippage.
source.expected_amount is what the route should use, and anything unused is refunded to your
user after the swap.Routes
Your user always sees one route, one amount and one deposit address, whatever happens behind it.
Fees and slippage
fees lists every fee by category (NETWORK, PROVIDER, SWAP, BRIDGE, USEROUTR) with a
total in the source asset. Useroutr adds nothing to the rate: a pool’s own fee is part of its
price and shows in expected_amount. slippage_bps applies to swaps only and defaults to 100
(1%); pass 1 to 5000 to change it.
Expiry and locks
A quote can be selected untilexpires_at. Once locked, the lock lasts until
lock_expires_at if nothing arrives; after a payment arrives the lock holds until the route
finishes. If a lock lapses unpaid, the intent goes back to its own asset and you can quote
again.