ExecutionStatus
sealed class ExecutionStatus : Disposable
The status of an executed Transaction
BCS
The BCS serialized form for this type is defined by the following ABNF:
execution-status = success / failure
success = %d00
failure = %d01 execution-error (option u64)
Inheritors
| Success |
| Failure |
Types
| Name | Summary |
|---|---|
| Failure | data class Failure(val error: ExecutionError, val command: ULong?) : ExecutionStatus The Transaction didn't execute successfully. |
| Success | object Success : ExecutionStatus The Transaction successfully executed. |
Functions
| Name | Summary |
|---|---|
| destroy | open override fun destroy() |
Failure
data class Failure(val error: ExecutionError, val command: ULong?) : ExecutionStatus
The Transaction didn't execute successfully.
Failed transactions are still committed to the blockchain but any intended effects are rolled back to prior to this transaction executing with the caveat that gas objects are still smashed and gas usage is still charged.
Constructors
| Failure | constructor(error: ExecutionError, command: ULong?) |
Properties
| Name | Summary |
|---|---|
| command | val command: ULong? The command, if any, during which the error occurred. |
| error | val error: ExecutionError The error encountered during execution. |
Functions
| Name | Summary |
|---|---|
| destroy | open override fun destroy() |
Success
object Success : ExecutionStatus
The Transaction successfully executed.
Functions
| Name | Summary |
|---|---|
| destroy | open override fun destroy() |