Skip to main content

getSwapQuote

Gets a swap quote for exchanging tokens across chains or within the same chain. The response includes pricing, fees, estimated execution time, and a signingPayload for on-chain execution via executeSwapTransaction.

Usage

Parameters

Exactly one of from.amount or to.amount must be provided. Providing both or neither throws an InvalidParamError.

Returns

Promise<SwapQuoteResponse> - The quote response including a signingPayload field for on-chain execution.

Examples

Same-chain swap (USDC to ETH)

Cross-chain bridge (ETH to Polygon)

Quote and execute

Supported Chains

The swap quote supports the following chains (mainnet only):
  • BTC
  • EVM
  • SOL
  • SUI

React

useGetSwapQuote is a query hook: it requests a quote for the parameters you pass and returns it in data. Render it only once you have a wallet address, so the quote is not requested before the user connects.
Last modified on August 21, 2026