> ## 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 ja/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: メインネットRPCエンドポイント
  - url: https://devnet.helius-rpc.com
    description: デブネット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: 不正なパラメータ
                id: '1'
        '401':
          description: 認証失敗 - 無効または欠落しているAPIキー。
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32001
                  message: 認証失敗
                id: '1'
        '429':
          description: リクエスト数超過 - レートリミットを超えました。
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32005
                  message: リクエストが多すぎます
                id: '1'
        '500':
          description: サーバー内部エラー - サーバーでエラーが発生しました。
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32603
                  message: 内部エラー
                id: '1'
        '503':
          description: サービス利用不可能 - サービスが一時的に利用できません。
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32002
                  message: サービス利用不可能
                id: '1'
        '504':
          description: ゲートウェイタイムアウト - リクエストがタイムアウトしました。
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32003
                  message: ゲートウェイタイムアウト
                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キー。無料で[ダッシュボード](https://dashboard.helius.dev/api-keys)で取得できます。

````