canceledSingleTransactionPlanResult
Creates a canceled SingleTransactionPlanResult from a transaction message.
This function creates a single result with a 'canceled' status, indicating that the transaction execution was canceled. It includes the original transaction message.
Type Parameters
Type Parameter | Default type | Description |
---|---|---|
TContext extends TransactionPlanResultContext | TransactionPlanResultContext | The type of the context object (not used in canceled results) |
TTransactionMessage extends Readonly <{ instructions : readonly Instruction <string , readonly (/api/functions/ | AccountLookupMeta <string , string > | AccountMeta <string >)[]>[]; version : TransactionVersion ; }> & TransactionMessageWithFeePayer <string > | Readonly <{ instructions : readonly Instruction <string , readonly (/api/functions/ | AccountLookupMeta <string , string > | AccountMeta <string >)[]>[]; version : TransactionVersion ; }> & TransactionMessageWithFeePayer <string > | The type of the transaction message |
Parameters
Parameter | Type | Description |
---|---|---|
transactionMessage | TTransactionMessage | The original transaction message |
Returns
SingleTransactionPlanResult
<TContext
, TTransactionMessage
>