in-solana by Supanode

What Is Epoch in Solana?

An epoch is a period of 432,000 slots (approximately 2-3 days) that defines the rotation cycle for leader schedules and staking rewards distribution.

What happens each epoch

  1. Leader schedule rotates. A new leader schedule is generated for the upcoming epoch, determining which validator produces blocks in each slot.
  2. Staking rewards are distributed. Validators and their delegators receive inflation rewards based on their stake and performance during the epoch.
  3. Stake activations and deactivations take effect. Stake delegated during the previous epoch becomes active. Deactivated stake becomes withdrawable.

Epoch timing

ParameterValue
Slots per epoch432,000
Approximate duration2-3 days
Slot duration~400ms

The exact duration varies because slots can be skipped or take slightly more or less than 400ms.

Querying epoch data

Use getEpochInfo to get the current epoch number, slot index within the epoch, and the number of slots remaining.

Updated: