Skip to main content

ExecutionStatus

ExecutionStatus​

enum ExecutionStatus

The status of an executed Transaction

BCS

The BCS serialized form of this type is specified in bcs-schema.abnf.

ExecutionStatus.failure(error:command:)​

case failure(error: ExecutionError, command: UInt64?)

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.

ExecutionStatus.success​

case success

The Transaction successfully executed.

toBcs()​

func toBcs() throws -> Data

Convert this type to BCS encoded bytes.

toDisplayString()​

func toDisplayString() -> String

Render this type as human-readable text.

The layout is meant for reading and can change between releases. Use the JSON or BCS conversions for output that gets parsed.

toJson()​

func toJson() throws -> String

Convert this type to a JSON encoded string.