Skip to main content

IotaSystemState

open class IotaSystemState : Disposable, AutoCloseable, IotaSystemStateInterface

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.

Functions

NameSummary
close@Synchronized
open override fun close()
destroyopen override fun destroy()
idopen override fun id(): ObjectId
The object's ID.
toStringopen override fun toString(): String
versionopen override fun version(): ULong
Version selecting which inner state layout the dynamic field holds.

Companion object functions

NameSummary
tryFromBcsfun tryFromBcs(bytes: ByteArray): IotaSystemState
Decode from BCS bytes, without validating the on-chain type tag.
tryFromObjectfun tryFromObject(object: Object): IotaSystemState
Decode from an on-chain object, validating its Move type tag.