isSuccessfulTransactionPlanResult
Checks if the given transaction plan result is a SuccessfulTransactionPlanResult.
This function verifies that the entire transaction plan result tree contains only successful single transaction results. It recursively checks all nested results to ensure every SingleTransactionPlanResult has a 'successful' status.
Note: This is different from isSuccessfulSingleTransactionPlanResult which checks if a single result is successful. This function checks that the entire plan result tree (including all nested parallel/sequential structures) contains only successful transactions.
Type Parameters
| Type Parameter | Default type |
|---|---|
TContext extends TransactionPlanResultContext | TransactionPlanResultContext |
TTransactionMessage extends TransactionMessage & TransactionMessageWithFeePayer<string> | TransactionMessage & TransactionMessageWithFeePayer<string> |
Parameters
| Parameter | Type | Description |
|---|---|---|
plan | TransactionPlanResult<TContext, TTransactionMessage> | The transaction plan result to check. |
Returns
plan is SuccessfulTransactionPlanResult<TContext, TTransactionMessage>
true if all single transaction results in the tree are successful, false otherwise.