getLeaderSchedule - Solana

getLeaderSchedule. Retrieves the leader schedule for a specific epoch

getLeaderSchedule - solana [Value: 5CU]
The method in Solana retrieves the leader schedule for a specific epoch
Use cases

Use cases

  • Retrieve the leader schedule for Solana validators
  • Determine upcoming leaders for transaction planning
  • Analyze leader rotation for performance optimization
Constraints

Constraints

  • Limited to the current and upcoming schedules
  • Dependent on up-to-date network data
  • API rate limits may affect retrieval frequency
Get started
Unlock Access to 50+ chains
Boost your app's speed and reliability with dRPC - get your access API key

Language

Request
Examples
curl https://solana.drpc.org \
  -X POST \
  -H "Content-Type: application/json" \
  --data '{"jsonrpc":"2.0","id":1, "method":"getLeaderSchedule"}'
Copy
Response
200
{
  "jsonrpc": "2.0",
  "result": {
    "validator1_base58_pubkey": [0, 1, 2],
    "validator2_base58_pubkey": [3, 4, 5],
    // ...
  },
  "id": 1
}
Copy

Request params

idinteger
jsonrpcstring
methodstring
Parametersarray
array
u64string
Retrieves the leader schedule for the epoch corresponding to the given slot. If not specified, it fetches the schedule for the current epoch
identitystring
Returns results only for the specified validator identity, encoded as a base-58 string.
commitmentstring
The level of commitment required for the query
  • finalized - The node will query the most recent block confirmed by supermajority of the cluster as having reached maximum lockout, meaning the cluster has recognized this block as finalized
  • confirmed - The node will query the most recent block that has been voted on by supermajority of the cluster
  • processed - The node will query its most recent block. Note that the block may not be complete

Response

200
Contains block production information, including details about the current epoch, the total number of blocks produced, and the number of leader slots assigned to each validator.

Response params

object
idinteger
jsonrpcstring
resultstring