Epoch (Solana)
Last updated:
The RPC methods
getEpochInfo: Returns the current epoch with the position inside it: epoch, slotIndex, slotsInEpoch, absoluteSlot, blockHeight and transactionCount. getEpochInfo reference →
getEpochSchedule: Returns the epoch schedule from the cluster's genesis config: slotsPerEpoch, leaderScheduleSlotOffset, warmup, firstNormalEpoch and firstNormalSlot. getEpochSchedule reference →
Applies to: Solana
Endpoint and plans: Solana RPC endpoint.
In more detail
Solana assigns leaders to slots one epoch at a time, so the schedule for the whole epoch is known in advance. getEpochInfo reports the current epoch and the position inside it; getEpochSchedule describes how many slots epochs contain.