ExecutionStatus
sealed class ExecutionStatus : Disposable
The status of an executed Transaction
BCS
The BCS serialized form of this type is specified in bcs-schema.abnf.
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() |
| toBcs | fun toBcs(): ByteArray Convert this type to BCS encoded bytes. |
| toDisplayString | fun toDisplayString(): String Render this type as human-readable text. |
| toJson | fun toJson(): String Convert this type to a JSON encoded string. |
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() |
| toBcs | fun toBcs(): ByteArray Convert this type to BCS encoded bytes. |
| toDisplayString | fun toDisplayString(): String Render this type as human-readable text. |
| toJson | fun toJson(): String Convert this type to a JSON encoded string. |
Success
object Success : ExecutionStatus
The Transaction successfully executed.
Functions
| Name | Summary |
|---|---|
| destroy | open override fun destroy() |
| toBcs | fun toBcs(): ByteArray Convert this type to BCS encoded bytes. |
| toDisplayString | fun toDisplayString(): String Render this type as human-readable text. |
| toJson | fun toJson(): String Convert this type to a JSON encoded string. |