> ## Documentation Index
> Fetch the complete documentation index at: https://docs.uniblock.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# getSlotLeaders

> Returns the slot leaders for a given slot range.

### Parameters

<ParamField query="chainId" type="string" default="solana-devnet" required>
  Unique identifier for a blockchain network.
</ParamField>

<ParamField body="id" type="number" default={1} required>
  Request identifier used to match responses.
</ParamField>

<ParamField body="jsonrpc" type="string" default="2.0" required>
  JSON-RPC version.
</ParamField>

<ParamField body="method" type="string" default="getSlotLeaders" required>
  JSON-RPC method name.
</ParamField>

<ParamField body="params" type="object" default={[100,10]} placeholder="[100,10]" required>
  Parameters for method getSlotLeaders: \[startSlot, limit]

  Positional parameters for <code>getSlotLeaders</code>:

  <ul>
    <li><code>params\[0]</code>: Starting slot number for the range.</li>
    <li><code>params\[1]</code>: Maximum number of results to return.</li>
  </ul>
</ParamField>

### Returns

<ResponseField name="result" type="array">
  Array of base-58 encoded public keys of slot leaders.

  <Expandable title="items">
    <ResponseField name="items[]" type="string">
      Base-58 encoded public key of the slot leader.
    </ResponseField>
  </Expandable>
</ResponseField>

<RequestExample>
  ```bash Curl theme={null}
  curl --request POST \
    --url https://api.uniblock.dev/uni/v1/json-rpc?chainId=solana-devnet \
    --header 'content-type: application/json' \
    --data '{
      "id": 1,
      "jsonrpc": "2.0",
      "method": "getSlotLeaders",
      "params": [
        100,
        10
      ]
    }'
  ```
</RequestExample>

<ResponseExample>
  ```json Success theme={null}
  {
    "jsonrpc": "2.0",
    "id": 1,
    "result": [
      "ChorusmmK7i1AxXeiTtQgQZhQNiXYU84ULeaYF1EH15n",
      "ChorusmmK7i1AxXeiTtQgQZhQNiXYU84ULeaYF1EH15n",
      "ChorusmmK7i1AxXeiTtQgQZhQNiXYU84ULeaYF1EH15n",
      "ChorusmmK7i1AxXeiTtQgQZhQNiXYU84ULeaYF1EH15n",
      "..."
    ]
  }
  ```
</ResponseExample>
