getSlotLeaders

getSlotLeaders RPC Method

post
/

Returns the slot leaders for a given slot range. This method provides the sequence of validators scheduled to produce blocks for consecutive slots, which is essential for understanding the upcoming block production schedule on the Solana network.

Authorizations
AuthorizationstringOptional

Authorization header for API key authentication.

Example:

Authorization: your-api-key-here
Body
jsonrpcstring · enumRequired

JSON-RPC protocol version

Example: 2.0Possible values:
idone ofRequired

Request identifier that will be returned in the response

Example: 1
stringOptional
or
numberOptional
methodstring · enumRequired

The RPC method name

Example: getSlotLeadersPossible values:
paramsinteger · int64[] · min: 2 · max: 2Required

Method parameters (both required):

  1. Start slot (u64) - required
  2. Limit (u64) - required, between 1 and 5,000
Example: [100,10]
Responses
chevron-right
200

Successful Response

application/json

RPC response containing slot leaders information

jsonrpcstring · enumRequired

JSON-RPC protocol version

Example: 2.0Possible values:
idone ofRequired

Request identifier matching the original request

Example: 1
stringOptional
or
numberOptional
resultstring[]Optional

Array of node identity public keys as base-58 encoded strings. Each element represents the validator scheduled to be the slot leader for the corresponding slot in the requested range. The array is ordered sequentially, with the first element being the leader for the start slot, the second element for start slot + 1, and so on.

Example: ["ChorusmmK7i1AxXeiTtQgQZhQNiXYU84ULeaYF1EH15n","Awes4Tr6TX8JDzEhCZY2QVNimT6iD1zWHzf1vNyGvpLM","DWvDTSh3qfn88UoQTEKRV2JnLt5jtJAVoiCo3ivtMwXP"]
post
/

Last updated