Skip to main content

IotaSystemState

type IotaSystemState

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`.

type IotaSystemState struct {
// contains filtered or unexported fields
}

func IotaSystemStateTryFromBcs

func IotaSystemStateTryFromBcs(bytes []byte) (*IotaSystemState, error)

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

func IotaSystemStateTryFromObject

func IotaSystemStateTryFromObject(object *Object) (*IotaSystemState, error)

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

func LiftFromExternalIotaSystemState

func LiftFromExternalIotaSystemState(handle uint64) *IotaSystemState

func (*IotaSystemState) DebugString

func (_self *IotaSystemState) DebugString() string

func (*IotaSystemState) Destroy

func (object *IotaSystemState) Destroy()

func (*IotaSystemState) Id

func (_self *IotaSystemState) Id() *ObjectId

The object's ID.

func (*IotaSystemState) Version

func (_self *IotaSystemState) Version() uint64

Version selecting which inner state layout the dynamic field holds.