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

# getLeaderSchedule

> Runs the Solana RPC `getLeaderSchedule` method.



## OpenAPI

````yaml getleaderschedule post /
openapi: 3.1.0
info:
  title: Solana RPC
  version: 1.0.0
  description: Solana RPC HTTP method reference.
servers:
  - url: https://rpc-mainnet.solanatracker.io
    description: Mainnet RPC endpoint
security: []
paths:
  /:
    post:
      summary: Run `getLeaderSchedule`
      description: Runs the Solana RPC `getLeaderSchedule` method.
      operationId: getleaderschedule
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                jsonrpc:
                  allOf:
                    - type: string
                      description: The JSON-RPC protocol version.
                      enum:
                        - '2.0'
                      example: '2.0'
                      default: '2.0'
                id:
                  allOf:
                    - type: string
                      description: A unique identifier for the request.
                      example: '1'
                      default: '1'
                method:
                  allOf:
                    - type: string
                      description: The name of the RPC method to invoke.
                      enum:
                        - getLeaderSchedule
                      example: getLeaderSchedule
                      default: getLeaderSchedule
                params:
                  allOf:
                    - type: array
                      description: Parameters for the method.
                      items:
                        oneOf:
                          - type: integer
                            description: >-
                              Epoch or slot number to retrieve the leader
                              schedule for. If omitted, returns the schedule for
                              the current epoch.
                            example: null
                          - type: object
                            description: Configuration object with additional options.
                            properties:
                              commitment:
                                type: string
                                description: The commitment level for the request.
                                enum:
                                  - confirmed
                                  - finalized
                                  - processed
                                example: finalized
                              identity:
                                type: string
                                description: >-
                                  Optional validator identity public key to
                                  filter results for a specific validator's
                                  schedule only.
                                example: 4Qkev8aNZcqFNSRhQzwyLMFSsi94jHqE8WNVTJzTP99F
              required:
                - jsonrpc
                - id
                - method
            examples:
              example:
                value:
                  jsonrpc: '2.0'
                  id: db16f277-1a22-41ff-9f85-f37e2cd77900
                  method: getLeaderSchedule
                  params:
                    - null
      responses:
        '200':
          description: Successfully retrieved the leader schedule.
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    allOf:
                      - type: string
                        description: The JSON-RPC protocol version.
                        enum:
                          - '2.0'
                        example: '2.0'
                  id:
                    allOf:
                      - type: string
                        description: Identifier matching the request.
                        example: '1'
                  result:
                    allOf:
                      - oneOf:
                          - type: 'null'
                            description: Null if the requested epoch is not found.
                          - type: object
                            description: >-
                              Mapping of validator identities to their assigned
                              leader slots within this epoch.
                            additionalProperties:
                              type: array
                              description: >-
                                Array of slot indices within the epoch where
                                this validator is scheduled to produce blocks.
                              items:
                                type: integer
                                example: 0
              examples:
                example:
                  value:
                    jsonrpc: '2.0'
                    id: db16f277-1a22-41ff-9f85-f37e2cd77900
                    result: null
      security:
        - ApiKeyQuery: []
components:
  securitySchemes:
    ApiKeyQuery:
      type: apiKey
      in: query
      name: api_key

````