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

# getSlotLeaders

> 指定されたスロット範囲のスロットリーダーを返します。

## リクエストパラメーター

<ParamField body="slot" type="number" required>
  バリデータスケジュールを取得開始するSolanaスロット番号。
</ParamField>

<ParamField body="slot" type="number" required>
  予定されたバリデータの識別子を取得するための連続スロットの数（1-5,000）。
</ParamField>


## OpenAPI

````yaml ja/openapi/rpc-http/getSlotLeaders.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: Devnet RPCエンドポイント
security: []
paths:
  /:
    post:
      tags:
        - RPC
      summary: getSlotLeaders
      description: |
        将来のスロットでブロックを生成する予定のSolanaバリデータの順序付きシーケンスを取得します。
        この予測的コンセンサスAPIは、今後のスロット範囲の完全なバリデータローテーションスケジュールを返し、
        アプリケーションがどのバリデータがブロック生産を担当するかを予測できるようにします。
        ネットワークモニタリングダッシュボード、バリデータパフォーマンス追跡、コンセンサス
        ビジュアライゼーションツール、および今後のリーダースケジュールを予測する必要があるアプリケーションにとって不可欠です。
        効率的なスケジュール取得のために、単一リクエストで最大5,000スロットまでのクエリをサポートします。
      operationId: getSlotLeaders
      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:
                    - getSlotLeaders
                  description: 呼び出すRPCメソッドの名前。
                  example: getSlotLeaders
                  default: getSlotLeaders
                params:
                  type: array
                  description: 開始スロットと制限を指定するためのパラメータ。
                  default:
                    - 433341000
                    - 10
                  items:
                    oneOf:
                      - type: integer
                        description: バリデータスケジュールを取得し始める開始Solanaスロット番号。
                        example: 100
                      - type: integer
                        description: スケジュールされたバリデータIDを取得する連続スロットの数（1-5,000）。
                        example: 10
      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: array
                    description: 今後のブロック生成のためにスケジュールされたSolanaバリデータIDの順序付きシーケンス。
                    items:
                      type: string
                      description: 特定のスロットのブロックプロデューサーとしてスケジュールされたSolanaバリデータID（公開鍵）。
                      example: ChorusmmK7i1AxXeiTtQgQZhQNiXYU84ULeaYF1EH15n
              examples:
                example1:
                  $ref: '#/components/examples/getSlotLeadersResponse'
        '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:
  examples:
    getSlotLeadersResponse:
      value:
        jsonrpc: '2.0'
        id: '1'
        result:
          - ChorusmmK7i1AxXeiTtQgQZhQNiXYU84ULeaYF1EH15n
          - ChorusmmK7i1AxXeiTtQgQZhQNiXYU84ULeaYF1EH15n
          - ChorusmmK7i1AxXeiTtQgQZhQNiXYU84ULeaYF1EH15n
          - ChorusmmK7i1AxXeiTtQgQZhQNiXYU84ULeaYF1EH15n
          - Awes4Tr6TX8JDzEhCZY2QVNimT6iD1zWHzf1vNyGvpLM
          - Awes4Tr6TX8JDzEhCZY2QVNimT6iD1zWHzf1vNyGvpLM
          - Awes4Tr6TX8JDzEhCZY2QVNimT6iD1zWHzf1vNyGvpLM
          - Awes4Tr6TX8JDzEhCZY2QVNimT6iD1zWHzf1vNyGvpLM
          - DWvDTSh3qfn88UoQTEKRV2JnLt5jtJAVoiCo3ivtMwXP
          - DWvDTSh3qfn88UoQTEKRV2JnLt5jtJAVoiCo3ivtMwXP
  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)で取得可能。

````