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
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
200
Successful Response
application/json
post
curl -X POST https://public.rpc.solanavibestation.com \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "getSlotLeaders",
    "params": [
      100,
      10
    ]
  }'
{
  "jsonrpc": "2.0",
  "result": [
    "ChorusmmK7i1AxXeiTtQgQZhQNiXYU84ULeaYF1EH15n",
    "ChorusmmK7i1AxXeiTtQgQZhQNiXYU84ULeaYF1EH15n",
    "Awes4Tr6TX8JDzEhCZY2QVNimT6iD1zWHzf1vNyGvpLM",
    "Awes4Tr6TX8JDzEhCZY2QVNimT6iD1zWHzf1vNyGvpLM",
    "DWvDTSh3qfn88UoQTEKRV2JnLt5jtJAVoiCo3ivtMwXP",
    "DWvDTSh3qfn88UoQTEKRV2JnLt5jtJAVoiCo3ivtMwXP",
    "9QU2QSxhb24FUX3Tu2FpczXjpK3VYrvRudywSZaM29mF",
    "9QU2QSxhb24FUX3Tu2FpczXjpK3VYrvRudywSZaM29mF",
    "EhYXQP4fmvC2BHA2CV3zNkGvLAZh1esaGJ7aepJ1xKzs",
    "EhYXQP4fmvC2BHA2CV3zNkGvLAZh1esaGJ7aepJ1xKzs"
  ],
  "id": 1
}

Last updated