Miscellaneous
getLeaderSchedule
Returns the leader schedule for an epoch.
Parameters
slotu64 optional Fetch the leader schedule for the epoch that corresponds to the provided slot. If unspecified, the leader schedule for the current epoch is fetched.
configobject optional Configuration object.
commitmentstringCommitment level.
identitystringOnly return results for this validator identity.
Result
object | nullA dictionary of validator identities and their corresponding leader slot indices.
Example
Request
JSONcurl "https://eu.fluxrpc.com?key=<your-API-key>" -s -X POST -H "Content-Type: application/json" -d '
{
"jsonrpc": "2.0",
"id": 1,
"method": "getLeaderSchedule",
"params": [{ "commitment": "finalized" }]
}'Response
JSON{
"jsonrpc": "2.0",
"result": {
"4Qkev8aNZcqFNSRhQzwyLMFSsi94jHqE8WNVTJzTP99F": [
0,
1,
2,
3,
4
]
},
"id": 1
}