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
CallgetFlowQuote 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.
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:
Related
- Fireblocks Flow JavaScript SDK guide - End-to-end flow guide
attachFlowSource- Attach a wallet or exchange sourcesubmitFlowTransaction- Submit for signing and broadcastprepareFlowSigning- Prepare signing (advanced)