TransactionEffects

The effects of executing a transaction.

Properties

Link copied to clipboard

Auxiliary data that are not protocol-critical, generated as part of the effects but are stored separately. Storing it separately allows us to avoid bloating the effects with data that are not critical. It also provides more flexibility on the format and type of the data.

Link copied to clipboard
abstract val bcs: Bcs

This TransactionEffects serialized as BCS.

Link copied to clipboard

Objects whose state are changed by this transaction.

Link copied to clipboard
abstract val dependencies: List<String>

The set of transaction digests this transaction depends on.

Link copied to clipboard
abstract val digest: String?

The digest of this TransactionEffects.

Link copied to clipboard
abstract val epoch: <Error class: unknown class>?

The epoch when this transaction was executed.

Link copied to clipboard
abstract val eventsDigest: String?

The digest of the events emitted during execution, can be None if the transaction does not emit any event.

Link copied to clipboard
abstract val gasObject: ChangedObject

Information about the gas object. Also present in the changed_objects vector.

Link copied to clipboard
abstract val gasUsed: GasCostSummary

The gas used by this transaction.

Link copied to clipboard
abstract val lamportVersion: <Error class: unknown class>?

The version number of all the written objects (excluding packages) by this transaction.

Link copied to clipboard

Returns the field-presence view for this TransactionEffects instance.

Link copied to clipboard
abstract val status: ExecutionStatus

The status of the execution.

Link copied to clipboard
abstract val transactionDigest: String?

The transaction digest.

Link copied to clipboard

Consensus objects that are not mutated in this transaction. Unlike owned objects, read-only consensus objects' version are not committed in the transaction, and in order for a node to catch up and execute it without consensus sequencing, the version needs to be committed in the effects.

Link copied to clipboard
abstract val version: Int?

Version of this TransactionEffects.

Functions

Link copied to clipboard
fun TransactionEffects.copy(body: <Error class: unknown class>.() -> Unit = {}): TransactionEffects

Copies the original message, including unknown fields.