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

Constructors

  • 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

  • Parameters

    • slot: number

    Returns number

  • Parameters

    • slot: number

    Returns [number, number]

  • Parameters

    • epoch: number

    Returns number

  • Parameters

    • epoch: number

    Returns number

  • Parameters

    • epoch: number

    Returns number