successfulSingleTransactionPlanResult
Creates a successful SingleTransactionPlanResult from a transaction message and transaction.
This function creates a single result with a 'successful' status, indicating that the transaction was successfully executed. It also includes the original transaction message, the executed transaction, and an optional context object.
Type Parameters
Type Parameter | Default type | Description |
---|---|---|
TContext extends TransactionPlanResultContext | TransactionPlanResultContext | The type of the context object |
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 |
transaction | Transaction | The successfully executed transaction |
context? | TContext | Optional context object to be included with the result |
Returns
SingleTransactionPlanResult
<TContext
, TTransactionMessage
>