Skip to main content

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

NameSummary
Failuredata class Failure(val error: ExecutionError, val command: ULong?) : ExecutionStatus
The Transaction didn't execute successfully.
Successobject Success : ExecutionStatus
The Transaction successfully executed.

Functions

NameSummary
destroyopen 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

Failureconstructor(error: ExecutionError, command: ULong?)

Properties

NameSummary
commandval command: ULong?
The command, if any, during which the error occurred.
errorval error: ExecutionError
The error encountered during execution.

Functions

NameSummary
destroyopen override fun destroy()

Success

object Success : ExecutionStatus

The Transaction successfully executed.

Functions

NameSummary
destroyopen override fun destroy()