get Slot Leader
POSTSlots & EpochsAll plans
Returns the identity of the current slot leader.
Try itSends a real request from your browser to the selected region.
getSlotLeader returns the validator leading the current slot, the one responsible for producing its block. It reads from the same leader schedule getLeaderSchedule exposes in bulk.
Plans & rate limitsAll plans
Free5/s
Operator50/s
Blade Runner200/s
Nexus500/s
Parameters
params is a JSON array, with values in this order: config.
1configobject
Optional configuration.
Show propertiesProperties
commitmentstringdefault: "finalized"
Bank state to compute the current slot (and thus its leader) from.
Allowed values:
finalizedconfirmedprocessedminContextSlotinteger
Minimum slot the node must have processed before answering.
Result
resultstring
The current slot leader's identity, base-58 encoded.
Notes
- The leader changes roughly every 4 slots, about 1.6 seconds, so a cached value goes stale almost immediately.
getSlotLeadersprovides a forward-looking view (who leads the next N slots), instead of polling this repeatedly.