getSlotLeaders

The getSlotLeaders method returns the slot leaders for a specified range of slots. This method provides the leader schedule, showing which validators are assigned to produce blocks for upcoming or historical slots, enabling prediction and analysis of validator responsibilities.

Solana pre-calculates the leader schedule for each epoch based on validator stake weights. Validators with higher stake receive proportionally more leader slots. The schedule ensures fair distribution while incentivizing stake accumulation for network security. This method allows querying the schedule for any slot range, which is valuable for predicting when specific validators will be leaders, planning transaction submission strategies, and analyzing validator performance over time.

This method is essential for validator operators planning maintenance windows, applications implementing advanced transaction routing to specific leaders, analytics platforms studying leader distribution and stake concentration, and monitoring tools tracking validator participation. The leader schedule is deterministic within an epoch, making this data reliable for planning purposes.


Parameters

parameter
type
description
startSlot
number
The first slot for which to retrieve the leader schedule (u64)
limit
number
Number of slots for which to retrieve leaders (u64, maximum 5000)
Return Object
field
type
description
result
array
Array of validator identity public keys as base-58 encoded strings, one for each slot in the requested range, in order
Request Example
Request
Response Example
Response

Tip: Maximum 5000 slots per request. The array index corresponds to slot offset from startSlot (index 0 = startSlot, index 1 = startSlot+1, etc.). Validators with more stake appear more frequently. Use this to predict when specific validators will be leaders or analyze stake distribution.


Share on
Share on FacebookShare on XShare on LinkedIn
Did you find this page useful?