Skip to main content

IotaSystemState

IotaSystemState Objects

class IotaSystemState(IotaSystemStateProtocol)

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.

try_from_bcs

@classmethod
def try_from_bcs(cls, bytes: bytes) -> IotaSystemState

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

try_from_object

@classmethod
def try_from_object(cls, object: Object) -> IotaSystemState

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

id

def id() -> ObjectId

The object's ID.

version

def version() -> int

Version selecting which inner state layout the dynamic field holds.