Skip to main content

IotaSystemStateV2

Namespace: IotaSdk

A typed view of the 0x3::iota_system_state_inner::IotaSystemStateV2 inner system state.

Exposes the scalar epoch parameters plus the nested validator set ([ValidatorSetV2]), storage fund ([StorageFundV1]), system parameters ([SystemParametersV1]), and the treasury's total supply.

public class IotaSystemStateV2 : IIotaSystemStateV2, System.IDisposable

Inheritance Object → IotaSystemStateV2
Implements IIotaSystemStateV2, IDisposable
Attributes NullableContextAttribute, NullableAttribute

Constructors​

IotaSystemStateV2(UInt64)​

public IotaSystemStateV2(ulong pointer)

Parameters​

pointer UInt64

Methods​

Destroy()​

public void Destroy()

Dispose()​

public void Dispose()

Epoch()​

public ulong Epoch()

Returns​

UInt64

EpochStartTimestampMs()​

Unix timestamp (ms) of the current epoch start.

public ulong EpochStartTimestampMs()

Returns​

UInt64

ExtraFieldsId()​

Object ID of the Bag holding fields added to this struct after its current on-chain layout was set.

public ObjectId ExtraFieldsId()

Returns​

ObjectId

IotaTotalSupply()​

Total IOTA supply controlled by the system treasury, in nanos.

public ulong IotaTotalSupply()

Returns​

UInt64

Parameters()​

The system parameters.

public SystemParametersV1 Parameters()

Returns​

SystemParametersV1

ProtocolVersion()​

public ulong ProtocolVersion()

Returns​

UInt64

ReferenceGasPrice()​

The reference gas price for the current epoch, in nanos.

public ulong ReferenceGasPrice()

Returns​

UInt64

SafeMode()​

Whether the system is running in a downgraded safe mode.

public bool SafeMode()

Returns​

Boolean

SafeModeComputationCharges()​

Computation charges accumulated during safe mode, in nanos.

public ulong SafeModeComputationCharges()

Returns​

UInt64

SafeModeComputationChargesBurned()​

Computation charges burned during safe mode, in nanos.

public ulong SafeModeComputationChargesBurned()

Returns​

UInt64

SafeModeNonRefundableStorageFee()​

Non-refundable storage fees accumulated during safe mode, in nanos.

public ulong SafeModeNonRefundableStorageFee()

Returns​

UInt64

SafeModeStorageCharges()​

Storage charges accumulated during safe mode, in nanos.

public ulong SafeModeStorageCharges()

Returns​

UInt64

SafeModeStorageRebates()​

Storage rebates accumulated during safe mode, in nanos.

public ulong SafeModeStorageRebates()

Returns​

UInt64

StorageFund()​

The storage fund.

public StorageFundV1 StorageFund()

Returns​

StorageFundV1

SystemStateVersion()​

public ulong SystemStateVersion()

Returns​

UInt64

ValidatorReportRecords()​

Validator report records: each reported validator's address mapped to the addresses of the validators reporting it.

public Dictionary<Address, Address[]> ValidatorReportRecords()

Returns​

Dictionary<Address, Address[]>

Validators()​

The validator set.

public ValidatorSetV2 Validators()

Returns​

ValidatorSetV2

TryFromBcs(Byte[])​

Decode an IotaSystemStateV2 from raw BCS bytes.

There is no object-based constructor: the inner state is stored as a dynamic field of the 0x5 wrapper, not as a top-level object with its own type tag.

public static IotaSystemStateV2 TryFromBcs(Byte[] bytes)

Parameters​

bytes Byte[]

Returns​

IotaSystemStateV2

Exceptions​

SdkFfiException