Skip to main content

IIotaSystemStateV2

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 interface IIotaSystemStateV2

Attributes NullableContextAttribute

Methods​

Epoch()​

ulong Epoch()

Returns​

UInt64

EpochStartTimestampMs()​

Unix timestamp (ms) of the current epoch start.

ulong EpochStartTimestampMs()

Returns​

UInt64

ExtraFieldsId()​

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

ObjectId ExtraFieldsId()

Returns​

ObjectId

IotaTotalSupply()​

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

ulong IotaTotalSupply()

Returns​

UInt64

Parameters()​

The system parameters.

SystemParametersV1 Parameters()

Returns​

SystemParametersV1

ProtocolVersion()​

ulong ProtocolVersion()

Returns​

UInt64

ReferenceGasPrice()​

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

ulong ReferenceGasPrice()

Returns​

UInt64

SafeMode()​

Whether the system is running in a downgraded safe mode.

bool SafeMode()

Returns​

Boolean

SafeModeComputationCharges()​

Computation charges accumulated during safe mode, in nanos.

ulong SafeModeComputationCharges()

Returns​

UInt64

SafeModeComputationChargesBurned()​

Computation charges burned during safe mode, in nanos.

ulong SafeModeComputationChargesBurned()

Returns​

UInt64

SafeModeNonRefundableStorageFee()​

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

ulong SafeModeNonRefundableStorageFee()

Returns​

UInt64

SafeModeStorageCharges()​

Storage charges accumulated during safe mode, in nanos.

ulong SafeModeStorageCharges()

Returns​

UInt64

SafeModeStorageRebates()​

Storage rebates accumulated during safe mode, in nanos.

ulong SafeModeStorageRebates()

Returns​

UInt64

StorageFund()​

The storage fund.

StorageFundV1 StorageFund()

Returns​

StorageFundV1

SystemStateVersion()​

ulong SystemStateVersion()

Returns​

UInt64

ValidatorReportRecords()​

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

Dictionary<Address, Address[]> ValidatorReportRecords()

Returns​

Dictionary<Address, Address[]>

Validators()​

The validator set.

ValidatorSetV2 Validators()

Returns​

ValidatorSetV2