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.Usage
Parameters
| Parameter | Type | Description |
|---|---|---|
flowId | string | The flow ID. |
fromTokenAddress | string (optional) | Token contract address (EVM) or mint (Solana) the sender is paying with. Defaults to the native token for the chain set during source attachment. Use 0x0000000000000000000000000000000000000000 for native ETH, or 11111111111111111111111111111111 for native SOL. |
fromChainId | string (optional) | Override the chain ID recorded at source attachment. The chain family (fromChainName) is locked at attachment — to switch families, call attachFlowSource again. |
slippage | number (optional) | Slippage tolerance as a decimal (e.g., 0.005 for 0.5%). |
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
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)