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

# getSlotLeaders | Solana

> The Solana getSlotLeaders method returns the slot leaders for a given slot range. Available on Solana via Chainstack JSON-RPC nodes.

The Solana `getSlotLeaders` method returns the slot leaders for a given slot range.

Each slot on Solana has a designated leader validator responsible for producing the block. This method returns the ordered list of validator identities assigned to produce blocks in the requested range.

## Parameters

1. `startSlot` (integer, required) — the start slot.
2. `limit` (integer, required) — the number of slot leaders to return (1–5000).

## Response

* `result` (array of strings) — an array of node identity public keys as base58 encoded strings, in order of the slot leaders for each slot in the requested range.

## Use case

A common use case for `getSlotLeaders` is in transaction landing optimization. By knowing which validator is the upcoming leader, you can route transactions directly to that validator's TPU port for faster inclusion. This is especially useful in latency-sensitive applications like trading bots and arbitrage.


## OpenAPI

````yaml openapi/solana_node_api/getSlotLeaders.json POST /9de47db917d4f69168e3fed02217d15b
openapi: 3.0.0
info:
  title: getSlotLeaders example
  version: 1.0.0
  description: This is an API example for Solana's getSlotLeaders.
servers:
  - url: https://nd-326-444-187.p2pify.com
security: []
paths:
  /9de47db917d4f69168e3fed02217d15b:
    post:
      tags:
        - query
      summary: getSlotLeaders
      operationId: getSlotLeaders
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                id:
                  type: integer
                  default: 1
                jsonrpc:
                  type: string
                  default: '2.0'
                method:
                  type: string
                  default: getSlotLeaders
                params:
                  type: array
                  default:
                    - 100
                    - 10
      responses:
        '200':
          description: Slot leaders
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                  id:
                    type: integer
                  result:
                    type: array
                    items:
                      type: string

````