getSlotLeaders - Solana

getSlotLeaders. Returns a list of slot leaders for a specified range

getAccountInfo - solana [Value: 16CU]
Returns a list of slot leaders for a specified range, aiding in analyzing block production patterns
Use cases

Use cases

  • Retrieve a list of slot leaders for a given range
  • Identify validators responsible for block production
  • Analyze slot leader distribution for network performance
Constraints

Constraints

  • Only provides data for specified slot range
  • Requires real-time and accurate network information
  • API rate limits may affect retrieval frequency
Get started
Unlock Access to 50+ chains
Boost your app's speed and reliability with dRPC - get your access API key

Language

Request
Examples
curl --request POST \
     --url https://solana.drpc.org \
     --header 'accept: application/json' \
     --header 'content-type: application/json' \
     --data '
{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "getSlotLeaders",
  "params": [
    165768577,
    5
  ]
}
'
Copy
Response
200
{
  "jsonrpc": "2.0",
  "result": [
    "2pK2DLvwEJmA8wPGVffjHSew1PqFvwvZEKJ7kfeFFbQ4",
    "3zLHv3nVGA3pJjzXErRczMHy3WfzrAxAxEGrAVXiDkZY",
    "4jKzv4NLJfVG9WAdtbKfnfE8FPJrBbZcz7zNrsfZxZbx",
    "5o2xtDFocMjD2wQx5y7kxkY5HzpFzBR9eDmXxMKU3Qrw",
    "6pFf9ULJPomD3zzwBvF2QhHmrGfww5Ez3yxBhTfMxZmv"
  ],
  "id": 1
}
Copy

Request params

idinteger
jsonrpcstring
methodstring
Parametersarray
array
start_slotstring
The starting slot, encoded as a 64-bit unsigned integer (u64).
limitstring
The maximum number of items, encoded as a 64-bit unsigned integer (u64).

Response

200
The leaders for each slot within the specified slot range.

Response params

array
idinteger
jsonrpcstring
resultstring