CheckpointContents
CheckpointContents
class CheckpointContents
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.
asV1()
func asV1() -> CheckpointContentsV1
digest()
func digest() -> CheckpointContentsDigest
isEmpty()
func isEmpty() -> Bool
Whether this checkpoint has no transactions.
isV1()
func isV1() -> Bool
len()
func len() -> UInt64
The number of transactions in this checkpoint.
toBcs()
func toBcs() throws -> Data
Convert this type to BCS encoded bytes.
toDisplayString()
func toDisplayString() -> String
Render this type as human-readable text.
Some types also print this through the binding's native string conversion; this method is the spelling every object type has.
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.
transactions()
func transactions() -> [CheckpointTransactionInfo]
fromBcs(bcs:)
static func fromBcs(bcs: Data) throws -> CheckpointContents
Create this type from BCS encoded bytes.
fromJson(json:)
static func fromJson(json: String) throws -> CheckpointContents
Create this type from a JSON encoded string.
newV1(contents:)
static func newV1(contents: CheckpointContentsV1) -> CheckpointContents