Skip to main content
You can request quotes for multiple pairs and execute them in a single trade() call by building a data array from the quote response.

Flow

  1. Call getTradeQuotes with multiple entries in data.
  2. For each pair key in the response, get recommendedSource ?? bestReturnSource and the corresponding quote from quoteRates[source].
  3. Build TradeBuildTxnRequestData[] with amount, srcToken, destToken, toChain, protocol, recipient, slippage (and optionally srcDecimals, destDecimals) from each quote.
  4. Check allowances and approve only non-native tokens (skip 0x0000000000000000000000000000000000000000).
  5. Call trade({ request: { sender, refundee, fromChain, gasless: false, data: buildData }, signer }).
  6. On failure with action === "TRY_ANOTHER_ROUTE", rebuild data using bestReturnSource and retry.

Example

Next steps

Last modified on July 14, 2026