Skip to content

API ReferenceReact provider and hooksInterface

UseExecuteWorkflowReturn

Properties

error

error: BaseError | undefined;

Typed SDK failure from the most recent failed execute-time preflight.


executeWorkflow

executeWorkflow: () => Promise<WorkflowExecutionResult>;

Async callback to execute the workflow the hook was initialized with.

Returns

Promise<WorkflowExecutionResult>

The same exclusive preflight or wallet-execution outcome as WalletOperationWorkflow.execute.


executionResult

executionResult:
| WorkflowExecutionResult
| undefined;

Most recent exclusive execution outcome, if execution was requested.


isExecuting

isExecuting: boolean;

The wallet-operation phase has begun and is currently executing.


isPreflighting

isPreflighting: boolean;

Full execute-time validation is running before a new wallet prompt.


issues

issues: ValidationIssue[];

Domain issues from the most recent invalid execute-time preflight.


operations?

optional operations?: WalletOperation<AnvilWalletOperationType>[];

Inspectable operation snapshot. It starts with the prepared workflow’s queued operations and advances only after wallet execution begins.


wasCancelled

wasCancelled: boolean;

Whether the most recent execute-time preflight was cancelled.