broadcastFlow
Records that a flow transaction has been broadcast. For wallet sources, pass thetxHash from the on-chain transaction. For exchange sources, txHash can be omitted.
Most integrations should use
submitFlowTransaction instead, which calls broadcastFlow automatically after signing. Use broadcastFlow directly only when you handle signing and broadcasting yourself.Usage
Parameters
| Parameter | Type | Description |
|---|---|---|
flowId | string | The flow ID. |
txHash | string (optional) | The on-chain transaction hash. Required for wallet sources, optional for exchange sources. |
Returns
Promise<Flow> — the flow with executionState: 'broadcasted'.
Examples
Wallet source
Exchange source
Related
- Fireblocks Flow JavaScript SDK guide - End-to-end flow guide
submitFlowTransaction- Recommended: handles prepare, sign, and broadcastprepareFlowSigning- Prepare signing payloadgetFlow- Poll flow state after broadcast