successfulSingleTransactionPlanResult
Creates a successful SingleTransactionPlanResult from a transaction message and context.
This function creates a single result with a 'successful' status, indicating that the transaction was successfully executed. It also includes the original transaction message and a context object that must contain at least a Signature.
Type Parameters
| Type Parameter | Default type | Description |
|---|---|---|
TContext extends TransactionPlanResultContext | TransactionPlanResultContext | The type of the context object |
TTransactionMessage extends TransactionMessage & TransactionMessageWithFeePayer<string> | TransactionMessage & TransactionMessageWithFeePayer<string> | The type of the transaction message |
Parameters
| Parameter | Type | Description |
|---|---|---|
plannedMessage | TTransactionMessage | The original transaction message |
context | SuccessfulBaseTransactionPlanResultContext & TContext | Context object to be included with the result, must include a signature property |
Returns
SuccessfulSingleTransactionPlanResult<TContext, TTransactionMessage>