cancelFlow
Cancels a flow before it has been broadcast to the blockchain. Once cancelled, the flow cannot be resumed — create a new one to start over.Usage
Parameters
| Parameter | Type | Description |
|---|---|---|
flowId | string | The flow ID to cancel. |
Returns
Promise<Flow> — the cancelled flow with executionState: 'cancelled'.
Examples
Cancel on user action
Cancel on wallet rejection
If a user rejects the signing request in their wallet, cancel the flow to clean up:Related
- Fireblocks Flow JavaScript SDK guide - End-to-end flow guide
getFlow- Poll flow statesubmitFlowTransaction- Submit for signing and broadcast