Maxy for your app / Use cases
Router field mapping
How a Maxy quote fills the fields of a router's route, and how to quote Maxy as the second leg of a route. It is for teams adding Maxy to a DEX aggregator, a bridge router or a wallet SDK. The calls in order: Router flow.
Quote only the single-settler pairs: one settler escrow (evm-btc-escrow, evm-btc-gasless, sol-btc) or the direct BTC sale a settler pays (btc-evm, btc-sol in a settler coin). Leave out the two-leg routes (evm-btc-bridge, btc-evm through a bridge), which carry a bridge leg of Maxy's own; that leg's LI.FI calls name Maxy's integrator, maxy. Router intake lists both kinds.
Map a quote to your route
| Swap-quote field | Maxy (GET /quote) |
|---|---|
sellAmount | fromAmount |
buyAmount | toAmount: what arrives |
minBuyAmount | toAmountMin, equal to toAmount |
liquidityAvailable | false, with HTTP 200, no amounts and a message, when Maxy cannot fill this order now |
issues.balance, issues.allowance | The same names |
transaction | The escrow step (kind transaction), or the transaction POST /orders answers |
route.fills[].source | 'maxy' |
| Your integrator fee | partnerFeeBps and partnerFeeRecipient (and partnerFeeToken) on the quote; the fee shows as fees.partner and totalFromAmount, and the wallet sends it after the escrow: Partner fees |
Coins go by the spelling your stack already uses: USDC on base, arbitrum:USDC, BASE.ETH, a CAIP-19 id, or a token address with fromChain. Give your route an execution time of 15 seconds from the escrow to the BTC sent for a buy (about 600 seconds to final, at one Bitcoin confirmation), and 1,800 seconds for a sell, which waits for Bitcoin confirmations.
Funds first
A USDC quote names its steps only for a wallet that already holds the USDC. When your own leg delivers the USDC to the user's wallet, quote Maxy again after it lands. The USDC leg is gasless: the user signs, and the solver opens the escrow and pays its gas: Pay with USDC.