Skip to main content

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​

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()
toBcsfun toBcs(): ByteArray
Convert this type to BCS encoded bytes.
toDisplayStringfun toDisplayString(): String
Render this type as human-readable text.
toJsonfun 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​

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()
toBcsfun toBcs(): ByteArray
Convert this type to BCS encoded bytes.
toDisplayStringfun toDisplayString(): String
Render this type as human-readable text.
toJsonfun toJson(): String
Convert this type to a JSON encoded string.

Success​

object Success : ExecutionStatus

The Transaction successfully executed.

Functions​

NameSummary
destroyopen override fun destroy()
toBcsfun toBcs(): ByteArray
Convert this type to BCS encoded bytes.
toDisplayStringfun toDisplayString(): String
Render this type as human-readable text.
toJsonfun toJson(): String
Convert this type to a JSON encoded string.