POST
/
9de47db917d4f69168e3fed02217d15b
curl --request POST \
  --url https://nd-326-444-187.p2pify.com/9de47db917d4f69168e3fed02217d15b \
  --header 'Content-Type: application/json' \
  --data '{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "getLeaderSchedule",
  "params": [
    "<any>"
  ]
}'
{
  "jsonrpc": "<string>",
  "id": 123,
  "result": {}
}

Solana getLeaderSchedule method

The Solana getLeaderSchedule method retrieves the leader schedule for an epoch.

This method provides the schedule of when each validator is expected to be the leader and produce blocks. It is useful for predicting block production and for network participants to prepare for their slot as a leader.

Get you own node endpoint today

Start for free and get your app to production levels immediately. No credit card required.

You can sign up with your GitHub, X, Google, or Microsoft account.

Parameters

  • epoch — (optional) the epoch for which the leader schedule should be returned. If not provided, the leader schedule for the current epoch is returned.
  • commitment — (optional) the level of commitment desired:
    • processed — the node has processed the block and the block may be on a fork.
    • confirmed — the block is confirmed by the cluster as not being on a fork.
    • finalized — the block is finalized by the cluster.

Response

  • value — the leader schedule:
    • A mapping of public keys to an array of slot indices, indicating when each validator is expected to be the leader.

Use case

A practical use case for getLeaderSchedule is for validators to know when they are expected to produce blocks and for participants to predict block production on the network.

Body

application/json
id
integer
default:1
jsonrpc
string
default:2.0
method
string
default:getLeaderSchedule
params
any[]

Response

200 - application/json
Leader schedule details
jsonrpc
string
id
integer
result
object