RPC MethodsHTTPgetSlotLeaders

Slot

getSlotLeaders

Returns the slot leaders for a given slot range.

Parameters

startSlotu64 required

Start slot.

limitu64 required

Limit, as u64 (between 1 and 5,000).

Result

array

Array of node identity public keys as base-58 encoded strings.

Example

Request
JSON
curl "https://eu.fluxrpc.com?key=<your-API-key>" -s -X POST -H "Content-Type: application/json" -d '
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "getSlotLeaders",
  "params": [100, 10]
}'
Response
JSON
{
"jsonrpc": "2.0",
"result": [
"ChorusmmC7i2AQjCWK1h7G3MFUZGKQ5YTPC1ibK4T1fdg",
"ChorusmmC7i2AQjCWK1h7G3MFUZGKQ5YTPC1ibK4T1fdg",
"Fud6e2BSAJCjFxwTPGjQdxBNYA4TdS2KPXGKB3zRBx7S"
],
"id": 1
}