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

# getSlotLeader

> Solana의 슬롯 리더로 현재 블록을 생성하는 검증자를 반환합니다. 이는 32바이트 공개 키로 식별됩니다. 리더 인식 트랜잭션 라우팅 및 검증자 모니터링에 유용합니다.

## 요청 매개변수

<ParamField body="commitment" type="string">
  요청에 대한 커밋먼트 레벨입니다.

  * `confirmed`
  * `finalized`
  * `processed`
</ParamField>

<ParamField body="minContextSlot" type="number">
  요청을 평가할 수 있는 최소 슬롯입니다.
</ParamField>


## OpenAPI

````yaml ko/openapi/rpc-http/getSlotLeader.yaml POST /
openapi: 3.1.0
info:
  title: Solana RPC API
  version: 1.0.0
  description: 특정 슬롯의 블록체인에서 블록을 생성할 책임이 있는 Solana 검증자를 식별하기 위한 검증자 스케줄링 API입니다.
  license:
    name: Apache 2.0
    url: https://www.apache.org/licenses/LICENSE-2.0.html
servers:
  - url: https://mainnet.helius-rpc.com
    description: Mainnet RPC 엔드포인트
  - url: https://devnet.helius-rpc.com
    description: Devnet RPC 엔드포인트
security: []
paths:
  /:
    post:
      tags:
        - RPC
      summary: getSlotLeader
      description: |
        현재 또는 미래 슬롯에 블록을 생성하도록 지정된 특정 Solana 검증자를 식별합니다.
        이 컨센서스 조정 API는 블록체인의 특정 슬롯에 리더로 예약된 검증자 신원(공개 키)을 반환합니다.
        네트워크 모니터링 도구, 검증자 성능 분석, 블록 생성 추적, 현재 리더 스케줄을 이해해야 하는 애플리케이션에 필수적입니다.
        슬롯 리더 정보는 지분 가중치와 무작위성을 기반으로 한 Solana의 지분 증명 리더 선택 알고리즘에 의해 결정됩니다.
      operationId: getSlotLeader
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                jsonrpc:
                  type: string
                  enum:
                    - '2.0'
                  description: JSON-RPC 프로토콜 버전입니다.
                  example: '2.0'
                  default: '2.0'
                id:
                  type: string
                  description: 요청에 대한 고유 식별자입니다.
                  example: '1'
                  default: '1'
                method:
                  type: string
                  enum:
                    - getSlotLeader
                  description: 호출할 RPC 메서드의 이름입니다.
                  example: getSlotLeader
                  default: getSlotLeader
                params:
                  type: array
                  description: 선택적 구성 객체입니다.
                  items:
                    type: object
                    properties:
                      commitment:
                        type: string
                        description: 요청의 커밋 수준입니다.
                        enum:
                          - confirmed
                          - finalized
                          - processed
                        example: finalized
                      minContextSlot:
                        type: integer
                        description: 요청을 평가할 수 있는 최소 슬롯입니다.
                        example: 1000
      responses:
        '200':
          description: 슬롯 리더를 성공적으로 가져왔습니다.
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                    description: JSON-RPC 프로토콜 버전입니다.
                    enum:
                      - '2.0'
                    example: '2.0'
                  id:
                    type: string
                    description: 요청과 일치하는 식별자입니다.
                    example: '1'
                  result:
                    type: string
                    description: 이 슬롯에 대해 블록 생성자로 예약된 Solana 검증자 신원(공개 키)입니다.
                    example: ENvAW7JScgYq6o4zKZwewtkzzJgDzuJAFxYasvmEQdpS
              example:
                jsonrpc: '2.0'
                id: '1'
                result: ENvAW7JScgYq6o4zKZwewtkzzJgDzuJAFxYasvmEQdpS
        '400':
          description: 잘못된 요청 - 요청 매개변수가 잘못되었거나 요청이 손상되었습니다.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32602
                  message: Invalid params
                id: '1'
        '401':
          description: 권한 없음 - API 키가 잘못되었거나 누락되었습니다.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32001
                  message: Unauthorized
                id: '1'
        '429':
          description: 요청이 너무 많습니다 - 속도 제한 초과.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32005
                  message: Too many requests
                id: '1'
        '500':
          description: 내부 서버 오류 - 서버에서 오류가 발생했습니다.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32603
                  message: Internal error
                id: '1'
        '503':
          description: 서비스 사용 불가 - 서비스가 일시적으로 사용 불가합니다.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32002
                  message: Service unavailable
                id: '1'
        '504':
          description: 게이트웨이 시간 초과 - 요청이 시간 초과되었습니다.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32003
                  message: Gateway timeout
                id: '1'
      security:
        - ApiKeyQuery: []
components:
  schemas:
    ErrorResponse:
      type: object
      properties:
        jsonrpc:
          type: string
          description: JSON-RPC 프로토콜 버전입니다.
          enum:
            - '2.0'
          example: '2.0'
        error:
          type: object
          properties:
            code:
              type: integer
              description: 오류 코드입니다.
              example: -32602
            message:
              type: string
              description: 오류 메시지입니다.
            data:
              type: object
              description: 오류에 대한 추가 데이터입니다.
        id:
          type: string
          description: 요청과 일치하는 식별자입니다.
          example: '1'
  securitySchemes:
    ApiKeyQuery:
      type: apiKey
      in: query
      name: api-key
      description: >-
        사용자의 Helius API 키입니다.
        [dashboard](https://dashboard.helius.dev/api-keys)에서 무료로 받을 수 있습니다.

````