> ## 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.

# getSlotLeader | Solana

> The Solana getSlotLeader method returns the current slot leader. getSlotLeader JSON-RPC method available on the Solana blockchain via Chainstack.

# Solana `getSlotLeader` method

The Solana `getSlotLeader` method returns the current slot leader.

This method provides the public key of the current slot leader, which is the validator responsible for producing blocks in the current slot. It is useful for tracking which validator is currently producing blocks.

## Parameters

This method does not require any parameters.

## Response

* `value` — the public key of the current slot leader.

## Use case

A practical use case for `getSlotLeader` is to track which validator is currently producing blocks. This can be useful for network monitoring tools or other applications that need to display or make use of this information.


## OpenAPI

````yaml openapi/solana_node_api/getSlotLeader.json POST /9de47db917d4f69168e3fed02217d15b
openapi: 3.0.0
info:
  title: getSlotLeader example
  version: 1.0.0
  description: This is an API example for Solana's getSlotLeader.
servers:
  - url: https://nd-326-444-187.p2pify.com
security: []
paths:
  /9de47db917d4f69168e3fed02217d15b:
    post:
      tags:
        - query
      summary: getSlotLeader
      operationId: getSlotLeader
      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: getSlotLeader
                params:
                  type: array
                  default: []
      responses:
        '200':
          description: Slot leader details
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                  id:
                    type: integer
                  result:
                    type: string

````