getFlow
Fetches the current state of a flow. Use this to poll for status updates after submitting a transaction, or to restore flow state on page reload.Usage
Parameters
| Parameter | Type | Description |
|---|---|---|
flowId | string | The flow ID. |
Returns
Promise<Flow> — the current flow state.
Execution States
| State | Description |
|---|---|
initiated | Flow created, no source attached yet |
source_attached | Source wallet or exchange attached |
quoted | Quote fetched |
signing | Signing payload prepared, waiting for wallet signature |
broadcasted | Transaction broadcast to the blockchain |
source_confirmed | Source chain confirmed the transaction |
cancelled | Flow cancelled before broadcast |
expired | Flow expired before completion |
failed | Flow failed during execution |
Settlement States
| State | Description |
|---|---|
none | No settlement in progress |
bridging | Funds are being bridged across chains |
routing | Transaction is being routed through a DEX |
settling | Funds are settling to the destination |
swapping | Token swap is in progress |
completed | Settlement is complete |
failed | Settlement failed |
Examples
Poll for completion
Restore flow on page reload
Related
- Fireblocks Flow JavaScript SDK guide - End-to-end flow guide
submitFlowTransaction- Submit for signing and broadcastcancelFlow- Cancel a pending flow