FailedSingleTransactionPlanResult
A SingleTransactionPlanResult with a 'failed' status.
This type represents a single transaction that failed during execution. It includes the original planned message, the Error that caused the failure, and a context object containing the fields from BaseTransactionPlanResultContext — namely optional TransactionMessage, Signature, and Transaction fields that may or may not be populated depending on how far execution progressed before the failure.
You may use the failedSingleTransactionPlanResult helper to create objects of this type.
Example
Creating a failed result from a transaction message and error.
See
- failedSingleTransactionPlanResult
- isFailedSingleTransactionPlanResult
- assertIsFailedSingleTransactionPlanResult
Type Parameters
| Type Parameter | Default type | Description |
|---|---|---|
TContext extends TransactionPlanResultContext | TransactionPlanResultContext | The type of the context object that may be passed along with the result. |
TTransactionMessage extends TransactionMessage & TransactionMessageWithFeePayer | TransactionMessage & TransactionMessageWithFeePayer | The type of the transaction message. |