getSlotLeaders
Returns the slot leaders for a given slot range

Parameters

  • <u64> - Start slot
  • <u64> - Limit of the number of slot leaders in the response payload

Results

  • <array of base-58 encoded strings> - Node identity public keys

Example

Request

cURL
1
curl --location --request POST 'https://solana-mainnet.g.alchemy.com/v2/demo' \
2
--header 'Content-Type: application/json' \
3
--data-raw '{
4
"jsonrpc": "2.0",
5
"id": 1,
6
"method": "getSlotLeaders",
7
"params": [302,10]
8
}'
Copied!

Response

1
{
2
"jsonrpc": "2.0",
3
"result": [
4
"ChorusmmK7i1AxXeiTtQgQZhQNiXYU84ULeaYF1EH15n",
5
"ChorusmmK7i1AxXeiTtQgQZhQNiXYU84ULeaYF1EH15n",
6
"ChorusmmK7i1AxXeiTtQgQZhQNiXYU84ULeaYF1EH15n",
7
"ChorusmmK7i1AxXeiTtQgQZhQNiXYU84ULeaYF1EH15n",
8
"Awes4Tr6TX8JDzEhCZY2QVNimT6iD1zWHzf1vNyGvpLM",
9
"Awes4Tr6TX8JDzEhCZY2QVNimT6iD1zWHzf1vNyGvpLM",
10
"Awes4Tr6TX8JDzEhCZY2QVNimT6iD1zWHzf1vNyGvpLM",
11
"Awes4Tr6TX8JDzEhCZY2QVNimT6iD1zWHzf1vNyGvpLM",
12
"DWvDTSh3qfn88UoQTEKRV2JnLt5jtJAVoiCo3ivtMwXP",
13
"DWvDTSh3qfn88UoQTEKRV2JnLt5jtJAVoiCo3ivtMwXP"
14
],
15
"id": 1
16
}
Copied!