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

Quote with slippage tolerance

React

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