The Solana leader schedule is the table that names, for every slot of an epoch, the validator allowed to produce that slot's block. It is computed from stake, so a validator with more delegated stake gets more slots. Every node derives the same table locally, and it is known one epoch in advance.
What is the Solana leader schedule?#
Solana splits time into slots, and each slot has exactly one validator that may build a block for it. That validator is the slot leader. If you are new to the idea, slots and their leaders covers it first. The leader schedule is the list that answers "who leads slot N?" for a whole epoch at once.
There is no election message and no coordinator. Each validator runs the same deterministic function over the same inputs and arrives at the same answer. The inputs are the stake of each validator, recorded at a fixed point in the past, and the epoch number.
How is the leader schedule computed?#
In the Agave validator (the source cited here is release v4.4.1), the steps are short enough to follow by hand:
- Take every vote account that has non-zero stake for the epoch. Each one contributes a pair: the vote account's stake and the node identity that runs it.
- Sort the pairs by stake, largest first, breaking ties by vote account address, and drop exact duplicates. Sorting first means every node feeds the list to the sampler in the same order.
- Build a 32-byte seed that holds the epoch number as 8 little-endian bytes followed by zeros, and use it to seed a ChaCha random number generator.
- Draw one leader for every group of four slots. Each draw is weighted by stake and done with replacement, so a large validator can be picked many times in one epoch.
- Repeat each drawn leader four times. The constant behind this is
NUM_CONSECUTIVE_LEADER_SLOTS, which is 4.
The result is that a validator's expected share of slots matches its share of stake, while the exact order looks random and cannot be changed by anyone after the stake snapshot is fixed. Because the seed is only the epoch number, the randomness comes from the sampler, not from any secret.
How far ahead is the schedule known?#
The Anza leader rotation document explains that the schedule for an epoch comes from the ledger state at the start of the previous epoch. Stake that changes during an epoch only affects the schedule after that.
On mainnet you can see the numbers through the getEpochSchedule RPC method. When this page was checked, it reported slotsPerEpoch of 432,000 and leaderScheduleSlotOffset of 432,000. The offset is how far ahead a schedule is fixed, so mainnet knows the complete list for the next epoch while the current one is still running. With four slots per leader turn, one mainnet epoch holds 108,000 leader turns.
The same document notes an edge case. If the network splits into forks for longer than an epoch, each fork computes a schedule from its own history, and the schedules can differ. In normal operation the root moves forward long before this matters.
How do I read the leader schedule?#
Two RPC methods expose it:
getLeaderSchedulereturns an object keyed by validator identity. Each value is a list of slot indices counted from the first slot of the epoch, not absolute slot numbers. Add the epoch's first slot to get absolute slots. You can pass a slot to pick the epoch, and anidentityfilter to get one validator's slots.getSlotLeadersreturns the leader identity for each slot in a range you choose, which is easier when you only care about the next few hundred slots.
curl -s https://api.mainnet-beta.solana.com -X POST \-H 'content-type: application/json' \-d '{"jsonrpc":"2.0","id":1,"method":"getSlotLeaders","params":[470503504,8]}'
Replace the first parameter with a current slot from getSlot. Eight results cover two leader turns of four slots each.
Why does the leader schedule matter for shreds?#
Every shred carries a signature from the leader that produced it. A node that receives a shred reads the slot number from the header, looks up the scheduled leader for that slot, and checks the signature against that leader's public key. The Agave verifier does exactly this, and drops shreds that fail. Without the schedule, a receiver could not tell a real shred from a forged one. Merkle shreds and their signatures explain what the leader actually signs.
The schedule also shapes delivery. Turbine, the protocol that spreads shreds across the cluster, seeds its per-shred tree with the leader's public key along with the slot, shred index and shred type. So the leader schedule feeds directly into stake-weighted fanout, which decides who receives each shred first.
If you parse raw shreds yourself, the slot field in the header is your key into the schedule. The shred header parsing guide shows where that field sits.
What happens when a scheduled leader is offline?#
Nothing in the schedule changes. The slot passes without a block, and when its time is up the cluster moves on to the next scheduled leader. A skipped slot shows up as a gap in the chain of blocks, and a shred receiver simply sees no shreds for that slot. Watching which slots stay empty is one way to notice that a leader is struggling.
Questions#
Can a validator lead more than four slots in a row?#
Yes. Each four-slot turn is drawn independently with replacement, so the same validator can be drawn for two adjacent turns and lead eight slots in a row.
Can stake moved today change who leads tomorrow?#
Not within the next epoch. The schedule for an epoch is taken from stake recorded at the start of the previous epoch, so a stake change shows up in the schedule one epoch later at the earliest.
Are the slot numbers from getLeaderSchedule absolute?#
No. They are offsets from the first slot of the epoch. Add the epoch's first slot, which you can derive from getEpochInfo, to get absolute slot numbers.
Sources#
- Anza docs: Leader rotation (checked 2026-11-17)
- Solana docs: getLeaderSchedule RPC method (checked 2026-11-17)
- Solana docs: getSlotLeaders RPC method (checked 2026-11-17)
- Solana docs: getEpochSchedule RPC method (checked 2026-11-17)
- Agave v4.4.1 source: leader-schedule/src/lib.rs (checked 2026-11-17)
- Agave v4.4.1 source: leader-schedule/src/vote_keyed.rs (checked 2026-11-17)
- Agave v4.4.1 source: ledger/src/sigverify_shreds.rs (checked 2026-11-17)
- Agave v4.4.1 source: turbine/src/cluster_nodes.rs (checked 2026-11-17)