Skip to main content

CheckpointContents

type 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`](https://github.com/iotaledger/iota-rust-sdk/blob/develop/crates/iota-sdk-types/bcs-schema.abnf\).

type CheckpointContents struct {
// contains filtered or unexported fields
}

func CheckpointContentsFromBcs​

func CheckpointContentsFromBcs(bcs []byte) (*CheckpointContents, error)

Create this type from BCS encoded bytes.

func CheckpointContentsFromJson​

func CheckpointContentsFromJson(json string) (*CheckpointContents, error)

Create this type from a JSON encoded string.

func CheckpointContentsNewV1​

func CheckpointContentsNewV1(contents *CheckpointContentsV1) *CheckpointContents

func LiftFromExternalCheckpointContents​

func LiftFromExternalCheckpointContents(handle uint64) *CheckpointContents

func (*CheckpointContents) AsV1​

func (_self *CheckpointContents) AsV1() *CheckpointContentsV1

func (*CheckpointContents) Destroy​

func (object *CheckpointContents) Destroy()

func (*CheckpointContents) Digest​

func (_self *CheckpointContents) Digest() *CheckpointContentsDigest

func (*CheckpointContents) IsEmpty​

func (_self *CheckpointContents) IsEmpty() bool

Whether this checkpoint has no transactions.

func (*CheckpointContents) IsV1​

func (_self *CheckpointContents) IsV1() bool

func (*CheckpointContents) Len​

func (_self *CheckpointContents) Len() uint64

The number of transactions in this checkpoint.

func (*CheckpointContents) ToBcs​

func (_self *CheckpointContents) ToBcs() ([]byte, error)

Convert this type to BCS encoded bytes.

func (*CheckpointContents) ToDisplayString​

func (_self *CheckpointContents) 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.

func (*CheckpointContents) ToJson​

func (_self *CheckpointContents) ToJson() (string, error)

Convert this type to a JSON encoded string.

func (*CheckpointContents) Transactions​

func (_self *CheckpointContents) Transactions() []*CheckpointTransactionInfo