Skip to content

API ReferenceTransactions, wallets, and signaturesType Alias

WorkflowExecutionResult

type WorkflowExecutionResult =
| {
operations: WalletOperation<AnvilWalletOperationType>[];
status: 'executed';
}
| {
issues: ValidationIssue[];
status: 'invalid';
}
| {
error: BaseError;
status: 'failed';
}
| {
status: 'cancelled';
};

Exclusive outcome of one workflow execution invocation.

Union Members

Type Literal

{
operations: WalletOperation < AnvilWalletOperationType > [];
status: 'executed';
}

operations

operations: WalletOperation < AnvilWalletOperationType > [];

The resulting operation snapshot, including transaction uncertainty.

status

status: 'executed';

Full validation passed and the wallet-operation executor ran.


Type Literal

{
issues: ValidationIssue[];
status: "invalid";
}

issues

issues: ValidationIssue[];

Fresh validation issues; no wallet operation ran or changed status.

status

status: 'invalid';

Current domain state makes the preserved workflow intent invalid.


Type Literal

{
error: BaseError;
status: 'failed';
}

error

error: BaseError;

Retryable or terminal SDK error that prevented a domain verdict.

status

status: 'failed';

Full validation could not complete through the typed SDK error channel.


Type Literal

{
status: 'cancelled';
}

status

status: 'cancelled';

Every joined caller cancelled before a new wallet prompt began.