Skip to main content

MoveStruct

Namespace: IotaSdk

A move struct

BCS

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

public record class MoveStruct : System.IDisposable, System.IEquatable`1[[IotaSdk.MoveStruct, IotaSdk, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]

Inheritance Object → MoveStruct
Implements IDisposable, IEquatable<MoveStruct>
Attributes NullableContextAttribute, NullableAttribute

Properties​

StructType​

The type of this object

public StructTag StructType { get; init; }

Property Value​

StructTag

Version​

Number that increases each time a tx takes this object as a mutable input This is a lamport timestamp, not a sequentially increasing version

public Version Version { get; init; }

Property Value​

Version

Contents​

BCS bytes of a Move struct value

public Byte[] Contents { get; init; }

Property Value​

Byte[]

Constructors​

MoveStruct(StructTag, Version, Byte[])​

A move struct

BCS

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

public MoveStruct(StructTag StructType, Version Version, Byte[] Contents)

Parameters​

StructType StructTag
The type of this object

Version Version
Number that increases each time a tx takes this object as a mutable input This is a lamport timestamp, not a sequentially increasing version

Contents Byte[]
BCS bytes of a Move struct value

Methods​

Dispose()​

public void Dispose()

ToBcs()​

Convert this type to BCS encoded bytes.

public Byte[] ToBcs()

Returns​

Byte[]

Exceptions​

SdkFfiException

ToDisplayString()​

Render this type as human-readable text.

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