Skip to main content

CheckpointContents

Namespace: IotaSdk

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.

public class CheckpointContents : ICheckpointContents, System.IDisposable

Inheritance Object → CheckpointContents
Implements ICheckpointContents, IDisposable
Attributes NullableContextAttribute, NullableAttribute

Constructors​

CheckpointContents(UInt64)​

public CheckpointContents(ulong pointer)

Parameters​

pointer UInt64

Methods​

Destroy()​

public void Destroy()

Dispose()​

public void Dispose()

AsV1()​

public CheckpointContentsV1 AsV1()

Returns​

CheckpointContentsV1

Digest()​

public CheckpointContentsDigest Digest()

Returns​

CheckpointContentsDigest

IsEmpty()​

Whether this checkpoint has no transactions.

public bool IsEmpty()

Returns​

Boolean

IsV1()​

public bool IsV1()

Returns​

Boolean

Len()​

The number of transactions in this checkpoint.

public ulong Len()

Returns​

UInt64

ToBcs()​

Convert this type to BCS encoded bytes.

public Byte[] ToBcs()

Returns​

Byte[]

Exceptions​

SdkFfiException

ToDisplayString()​

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.

public string ToDisplayString()

Returns​

String

ToJson()​

Convert this type to a JSON encoded string.

public string ToJson()

Returns​

String

Exceptions​

SdkFfiException

Transactions()​

public CheckpointTransactionInfo[] Transactions()

Returns​

CheckpointTransactionInfo[]

FromBcs(Byte[])​

Create this type from BCS encoded bytes.

public static CheckpointContents FromBcs(Byte[] bcs)

Parameters​

bcs Byte[]

Returns​

CheckpointContents

Exceptions​

SdkFfiException

FromJson(String)​

Create this type from a JSON encoded string.

public static CheckpointContents FromJson(string json)

Parameters​

json String

Returns​

CheckpointContents

Exceptions​

SdkFfiException

NewV1(CheckpointContentsV1)​

public static CheckpointContents NewV1(CheckpointContentsV1 contents)

Parameters​

contents CheckpointContentsV1

Returns​

CheckpointContents