Skip to main content

GrpcCheckpointResponse

data class GrpcCheckpointResponse(var sequenceNumber: ULong, var summaryDigest: CheckpointDigest?, var summary: CheckpointSummary?, var signature: ValidatorAggregatedSignature?, var contentsDigest: CheckpointContentsDigest?, var contents: CheckpointContents?, var transactions: List<GrpcExecutedTransaction>?, var events: List<Event>?) : Disposable

Response for a checkpoint query.

Which fields are populated depends on the read mask used for the query; the default read mask only includes the checkpoint summary, and every other field is None.

The summary, signature, contents and events fields are deserialized from BCS, so the read mask must include CheckpointSummaryBcs, CheckpointSignature, CheckpointContentsBcs and EventsBcs respectively for them to be populated; digest-only read masks populate only the digest fields.

Constructors​

GrpcCheckpointResponseconstructor(sequenceNumber: ULong, summaryDigest: CheckpointDigest?, summary: CheckpointSummary?, signature: ValidatorAggregatedSignature?, contentsDigest: CheckpointContentsDigest?, contents: CheckpointContents?, transactions: List<GrpcExecutedTransaction>?, events: List<Event>?)

Properties​

NameSummary
contentsvar contents: CheckpointContents?
The checkpoint contents.
contentsDigestvar contentsDigest: CheckpointContentsDigest?
The digest of the checkpoint contents.
eventsvar events: List<Event>?
The events emitted in the checkpoint. None unless the read mask requests EventsBcs (or Events); a checkpoint with no events, or an events filter that matches nothing, yields an empty list.
sequenceNumbervar sequenceNumber: ULong
The checkpoint sequence number. Always available regardless of the read mask.
signaturevar signature: ValidatorAggregatedSignature?
The aggregated validator signature of the checkpoint.
summaryvar summary: CheckpointSummary?
The checkpoint summary.
summaryDigestvar summaryDigest: CheckpointDigest?
The digest of the checkpoint summary.
transactionsvar transactions: List<GrpcExecutedTransaction>?
The transactions executed in the checkpoint. None unless the read mask requests Transactions or one of its sub-fields (e.g. TransactionsEffectsBcs); with a transactions filter that matches nothing, an empty list.

Functions​

NameSummary
destroyopen override fun destroy()