submitFlowTransaction
Prepares, signs, and broadcasts a flow transaction in one call. This is the recommended way to submit — it handles the full sequence:- Calls
prepareFlowSigningto lock the quote and get the signing payload - Switches the wallet to the correct network
- Signs the transaction (including ERC-20 approval if needed)
- Calls
broadcastFlowwith the resultingtxHash
Usage
Parameters
| Parameter | Type | Description |
|---|---|---|
flowId | string | The flow ID. |
walletAccount | WalletAccount | The wallet account to sign with. Get this from the Dynamic SDK’s wallet management (e.g., useWalletAccounts() in React hooks). |
onStepChange | (step: 'approval' | 'transaction') => void (optional) | Callback fired when the signing step changes — useful for showing progress UI. |
assertBalanceForGasCost | boolean (optional) | Verify the wallet has enough for gas before signing. Returns 422 if insufficient. Default: false. |
assertBalanceForTransferAmount | boolean (optional) | Verify the wallet has enough for the transfer. Returns 422 if insufficient. Default: false. |
Returns
Promise<Flow> — the flow after broadcast, with executionState: 'broadcasted' and txHash populated.
Examples
Basic submission
With balance assertions and step tracking
Handle wallet rejection
Related
- Fireblocks Flow JavaScript SDK guide - End-to-end flow guide
prepareFlowSigning- Prepare signing manually (advanced)broadcastFlow- Record broadcast manually (advanced)getFlow- Poll flow state after submission