Skip to main content

MoveStruct

Namespace: IotaSdk

A move struct

BCS

The BCS serialized form for this type is defined by the following ABNF:

move-struct = compressed-struct-tag u64 bytes

compressed-struct-tag = other-struct-type / gas-coin-type / staked-iota-type / coin-type
other-struct-type = %d00 struct-tag
gas-coin-type = %d01
staked-iota-type = %d02
coin-type = %d03 type-tag

; The first 32 bytes of the `bytes` contents are the object's object-id.
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 for this type is defined by the following ABNF:

move-struct = compressed-struct-tag u64 bytes

compressed-struct-tag = other-struct-type / gas-coin-type / staked-iota-type / coin-type
other-struct-type = %d00 struct-tag
gas-coin-type = %d01
staked-iota-type = %d02
coin-type = %d03 type-tag

; The first 32 bytes of the `bytes` contents are the object's object-id.
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()