Skip to main content

getFlowQuote

Fetches a conversion quote for a flow. The quote includes the amounts, fees, estimated time, and an expiry. Call this after attaching a source.

When to call

Call getFlowQuote when executionState is source_attached, quoted, or signing. Calling it from quoted refreshes the quote. Calling it from signing returns the flow to quoted, so do not reuse the previous signing payload. Before restoring or retrying a flow, call getFlow and check its current state.
If the flow is initiated, attach a source first. Do not call getFlowQuote after broadcasted or source_confirmed; poll the existing flow instead. If the flow is cancelled, expired, or failed, create a new flow for another attempt. Calling from any unsupported state returns 409.

Usage

Parameters

Returns

Promise<Flow> — the updated flow with quote populated:
Quotes expire in 60 seconds. If the quote expires before you submit, call getFlowQuote again.

Examples

Quote with a specific ERC-20 token

Quote with native ETH

Deposit address source

For deposit address flows, flow.depositAddress is the address the user sends funds to. We recommend displaying it as a QR code and encoding the amount from flow.quote.fromAmount so wallets can pre-fill both fields on scan. See the deposit address section of the JS SDK guide for a buildDepositUri helper that handles BTC, SOL, and EVM (EIP-681) URI formats.

Quote with slippage tolerance

React

useGetFlowQuote is a mutation hook — call mutate to request a quote on demand:
Last modified on July 23, 2026