getSlotLeaders
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 · enumRequiredExample:
JSON-RPC protocol version
2.0
Possible values: idone ofRequiredExample:
Request identifier that will be returned in the response
1
stringOptional
numberOptional
methodstring · enumRequiredExample:
The RPC method name
getSlotLeaders
Possible values: paramsinteger · int64[] · min: 2 · max: 2RequiredExample:
Method parameters (both required):
- Start slot (u64) - required
- Limit (u64) - required, between 1 and 5,000
[100,10]
Responses
200
Successful Response
application/json
401
Unauthorized
text/plain
403
Forbidden
text/plain
429
Too Many Requests
text/plain
500
Internal Server Error
text/plain
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