Skip to main content

GrpcEpochInfo

GrpcEpochInfo​

struct GrpcEpochInfo

Information about an epoch.

init(epoch:committee:systemStateBcs:firstCheckpoint:lastCheckpoint:startMs:endMs:referenceGasPrice:protocolConfig:)​

init(epoch: UInt64?, committee: ValidatorCommittee?, systemStateBcs: Data?, firstCheckpoint: UInt64?, lastCheckpoint: UInt64?, startMs: UInt64?, endMs: UInt64?, referenceGasPrice: UInt64?, protocolConfig: GrpcProtocolConfig?)

committee​

var committee: ValidatorCommittee?

The committee governing the epoch.

endMs​

var endMs: UInt64?

Unix timestamp in milliseconds of the end of the epoch.

epoch​

var epoch: UInt64?

The epoch id.

firstCheckpoint​

var firstCheckpoint: UInt64?

The first checkpoint sequence number of the epoch.

lastCheckpoint​

var lastCheckpoint: UInt64?

The last checkpoint sequence number of the epoch.

protocolConfig​

var protocolConfig: GrpcProtocolConfig?

The protocol config of the epoch.

referenceGasPrice​

var referenceGasPrice: UInt64?

Reference gas price denominated in NANOS.

startMs​

var startMs: UInt64?

Unix timestamp in milliseconds of the beginning of the epoch.

systemStateBcs​

var systemStateBcs: Data?

Snapshot of IOTA's SystemState as BCS, at the beginning of the epoch for past epochs, or the current state for the current epoch.