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
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:
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)