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 mutation hook — call mutate to request a quote on demand:
Last modified on June 29, 2026