getSlotLeaders
Returns the slot leaders for a given slot range. This method uses 160 credits from your daily balance.
Parameters
- startSlot: (integer) [required] - The starting slot number for the query.`
- limit: (integer) [required] - The maximum number of slot leaders to return (- 1to- 5000).
Returns
result: (array of strings) - An array  of base58 encoded public key addresses identifying the slot leaders.
Request
- curl
curl https://solana-mainnet.infura.io/v3/<YOUR-API-KEY> \
  -X POST \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc": "2.0", "id": 1, "method": "getSlotLeaders", "params": [373184397, 5]}'
Response
- JSON
{
  "jsonrpc": "2.0",
  "result": [
    "dv3qDFk1DTF36Z62bNvrCXe9sKATA6xvVy6A798xxAS",
    "dv3qDFk1DTF36Z62bNvrCXe9sKATA6xvVy6A798xxAS",
    "dv3qDFk1DTF36Z62bNvrCXe9sKATA6xvVy6A798xxAS",
    "dv2eQHeP4RFrJZ6UeiZWoc3XTtmtZCUKxxCApCDcRNV",
    "dv2eQHeP4RFrJZ6UeiZWoc3XTtmtZCUKxxCApCDcRNV"
  ],
  "id": 1
}