Skip to main content

IotaSystemState

Namespace: IotaSdk

A typed view of the on-chain 0x3::iota_system::IotaSystemState object (the 0x5 singleton).

This is only the versioned wrapper; the actual state lives in a dynamic field holding e.g. an IotaSystemStateV2.

public class IotaSystemState : IIotaSystemState, System.IDisposable

Inheritance ObjectIotaSystemState
Implements IIotaSystemState, IDisposable
Attributes NullableContextAttribute, NullableAttribute

Constructors

IotaSystemState(UInt64)

public IotaSystemState(ulong pointer)

Parameters

pointer UInt64

Methods

Destroy()

public void Destroy()

Dispose()

public void Dispose()

Id()

The object's ID.

public ObjectId Id()

Returns

ObjectId

Version()

Version selecting which inner state layout the dynamic field holds.

public ulong Version()

Returns

UInt64

TryFromBcs(Byte[])

Decode from BCS bytes, without validating the on-chain type tag.

public static IotaSystemState TryFromBcs(Byte[] bytes)

Parameters

bytes Byte[]

Returns

IotaSystemState

Exceptions

SdkFfiException

TryFromObject(Object)

Decode from an on-chain object, validating its Move type tag.

public static IotaSystemState TryFromObject(Object object)

Parameters

object Object

Returns

IotaSystemState

Exceptions

SdkFfiException