Skip to content
Suomi

​Parameters

​slot
u64 | object | null
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 null or omitted, the RPC uses the current epoch.
  • If this parameter is an object, it has the same shape as config and the request omits the slot.
When this parameter is an object, it contains:
FieldTypeDescription
commitmentstringCommitment level used to select which slot the node reads from for this request.
identitystringValidator identity to filter for, as a base-58 encoded string.
keyByVoteAccountboolKey the schedule by vote account instead of validator identity (Agave v4.4 and later).
​config
object
Configuration object containing the following fields. This parameter is only used when slot is a number or null.

​Result

​result
object | null
Returns null if the requested epoch is unavailable. Otherwise returns an object where:
  • Keys are validator identities, or vote accounts when keyByVoteAccount is true (as base-58 encoded strings)
  • Values are arrays of leader slot indices relative to the first slot in the requested epoch