Source
get_leader_scheduleParameters
slot
Either the slot used to select the epoch,
null to use the current slot at the
requested commitment, or a configuration object.- If this parameter is a number, the RPC returns the leader schedule for the epoch that contains that slot.
- If this parameter is
nullor omitted, the RPC uses the current epoch. - If this parameter is an object, it has the same shape as
configand the request omits the slot.
| Field | Type | Description |
|---|---|---|
commitment | string | Commitment level used to select which slot the node reads from for this request. |
identity | string | Validator identity to filter for, as a base-58 encoded string. |
keyByVoteAccount | bool | Key the schedule by vote account instead of validator identity (Agave v4.4 and later). |
config
Configuration object containing the following fields. This parameter is only
used when
slot is a number or null.Result
result
Returns
null if the requested epoch is unavailable. Otherwise returns an
object where:- Keys are validator identities, or vote accounts when
keyByVoteAccountistrue(as base-58 encoded strings) - Values are arrays of leader slot indices relative to the first slot in the requested epoch