Options
All
  • Public
  • Public/Protected
  • All
Menu

Epoch schedule (see https://docs.solana.com/terminology#epoch) Can be retrieved with the Connection.getEpochSchedule method

Hierarchy

  • EpochSchedule

Index

Constructors

  • new EpochSchedule(slotsPerEpoch: number, leaderScheduleSlotOffset: number, warmup: boolean, firstNormalEpoch: number, firstNormalSlot: number): EpochSchedule
  • Parameters

    • slotsPerEpoch: number
    • leaderScheduleSlotOffset: number
    • warmup: boolean
    • firstNormalEpoch: number
    • firstNormalSlot: number

    Returns EpochSchedule

Properties

firstNormalEpoch: number

The first epoch with slotsPerEpoch slots

firstNormalSlot: number

The first slot of firstNormalEpoch

leaderScheduleSlotOffset: number

The number of slots before beginning of an epoch to calculate a leader schedule for that epoch

slotsPerEpoch: number

The maximum number of slots in each epoch

warmup: boolean

Indicates whether epochs start short and grow

Methods

  • getEpoch(slot: number): number
  • Parameters

    • slot: number

    Returns number

  • getEpochAndSlotIndex(slot: number): [number, number]
  • Parameters

    • slot: number

    Returns [number, number]

  • getFirstSlotInEpoch(epoch: number): number
  • Parameters

    • epoch: number

    Returns number

  • getLastSlotInEpoch(epoch: number): number
  • Parameters

    • epoch: number

    Returns number

  • getSlotsInEpoch(epoch: number): number
  • Parameters

    • epoch: number

    Returns number

Generated using TypeDoc