TransactionPlanResultStatus

type TransactionPlanResultStatus<TContext> = 
  | Readonly<{
  context: TContext;
  kind: "successful";
  transaction: Transaction;
}>
  | Readonly<{
  error: SolanaError;
  kind: "failed";
}>
  | Readonly<{
  kind: "canceled";
}>;

The status of a single transaction plan execution.

This represents the outcome of executing a single transaction message and can be one of:

  • successful - The transaction was successfully executed. Contains the transaction and an optional context object.
  • failed - The transaction execution failed. Contains the error that caused the failure.
  • canceled - The transaction execution was canceled.

Type Parameters

Type ParameterDefault typeDescription
TContext extends TransactionPlanResultContextTransactionPlanResultContextThe type of the context object that may be passed along with successful results

On this page