Skip to main content

CheckpointContents

open class CheckpointContents : Disposable, AutoCloseable, CheckpointContentsInterface

The committed to contents of a checkpoint.

CheckpointContents contains a list of digests of Transactions, their effects, and the user signatures that authorized their execution included in a checkpoint.

BCS

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

Functions​

NameSummary
asV1open override fun asV1(): CheckpointContentsV1
close@Synchronized
open override fun close()
destroyopen override fun destroy()
digestopen override fun digest(): CheckpointContentsDigest
isEmptyopen override fun isEmpty(): Boolean
Whether this checkpoint has no transactions.
isV1open override fun isV1(): Boolean
lenopen override fun len(): ULong
The number of transactions in this checkpoint.
toBcsopen override fun toBcs(): ByteArray
Convert this type to BCS encoded bytes.
toDisplayStringopen override fun toDisplayString(): String
Render this type as human-readable text.
toJsonopen override fun toJson(): String
Convert this type to a JSON encoded string.
transactionsopen override fun transactions(): List<CheckpointTransactionInfo>

Companion object functions​

NameSummary
fromBcsfun fromBcs(bcs: ByteArray): CheckpointContents
Create this type from BCS encoded bytes.
fromJsonfun fromJson(json: String): CheckpointContents
Create this type from a JSON encoded string.
newV1fun newV1(contents: CheckpointContentsV1): CheckpointContents