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

# getBlockProduction

> 現在または前のエポックからの最近のブロック生成情報を返します。

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

<ParamField body="commitment" type="string">
  リクエストのコミットメントレベル。

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

<ParamField body="identity" type="string">
  特定のバリデータの結果をフィルタリングするためのオプションのバリデータアイデンティティ公開鍵（base-58 エンコード）。
</ParamField>

<ParamField body="range" type="object">
  ブロック生成統計の時間範囲を制限するためのオプションのスロット範囲境界。
</ParamField>

<ParamField body="range.firstSlot" type="number">
  ブロック生成統計の分析を開始する開始スロット番号（含む）。
</ParamField>

<ParamField body="range.lastSlot" type="number">
  ブロック生成統計を分析するための終了スロット番号（含む）。省略した場合、現在のスロットを使用します。
</ParamField>


## OpenAPI

````yaml ja/openapi/rpc-http/getBlockProduction.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: getBlockProduction
      description: >
        指定されたスロット範囲内のSolanaバリデータの詳細なブロック生成統計を取得します。

        このパフォーマンス分析APIは、リーダーとして予定されているバリデータがどれだけ効率的にブロックを生成するかについての正確な指標を提供します。

        バリデータがリーダーとして割り当てられたスロット数と、実際に生成したブロック数の両方を返すことで、信頼性の割合を計算できます。

        バリデータのパフォーマンス監視、ネットワークの健全性分析、ステーキングダッシュボード、デリゲーションの決定やSolanaネットワーク全体の参加効果の監視において、信頼性を評価する必要のあるアプリケーションに不可欠です。
      operationId: getBlockProduction
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - jsonrpc
                - id
                - method
                - params
              properties:
                jsonrpc:
                  type: string
                  enum:
                    - '2.0'
                  description: JSON-RPCプロトコルバージョン。
                  default: '2.0'
                id:
                  type: string
                  description: リクエストのユニークな識別子。
                  example: '1'
                  default: '1'
                method:
                  type: string
                  enum:
                    - getBlockProduction
                  description: 呼び出すRPCメソッドの名前。
                  default: getBlockProduction
                params:
                  type: array
                  default: []
                  description: リクエストのパラメータ。
                  items:
                    oneOf:
                      - type: object
                        description: リクエストの構成オプション。
                        properties:
                          commitment:
                            type: string
                            description: リクエストのコミットメントレベル。
                            enum:
                              - processed
                              - confirmed
                              - finalized
                            example: finalized
                          identity:
                            type: string
                            description: >-
                              特定のバリデータの結果をフィルタリングするためのオプションのバリデータID公開鍵（base-58エンコード済み）。
                            example: 85iYT5RuzRTDgjyRa3cP8SYhM2j21fj7NhfJ3peu1DPr
                          range:
                            type: object
                            description: ブロック生成統計の期間を制限するためのオプションのスロット範囲境界。
                            properties:
                              firstSlot:
                                type: integer
                                description: ブロック生成統計の分析を開始する開始スロット番号（含む）。
                                example: 0
                              lastSlot:
                                type: integer
                                description: >-
                                  ブロック生成統計の分析を行う終了スロット番号（含む）。省略された場合は、現在のスロットを使用します。
                                example: 9887
      responses:
        '200':
          description: ブロック生成情報を正常に取得しました。
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                    enum:
                      - '2.0'
                  id:
                    type: string
                  result:
                    type: object
                    properties:
                      context:
                        type: object
                        properties:
                          slot:
                            type: integer
                            description: レスポンス時のスロット。
                            example: 9887
                      value:
                        type: object
                        properties:
                          byIdentity:
                            type: object
                            additionalProperties:
                              type: array
                              items:
                                type: integer
                              description: >-
                                このバリデータのための[leaderSlots,
                                blocksProduced]統計を含む2要素の配列。
                            description: バリデータID公開鍵のブロック生成パフォーマンス指標へのマップ。
                            example:
                              85iYT5RuzRTDgjyRa3cP8SYhM2j21fj7NhfJ3peu1DPr:
                                - 9888
                                - 9886
                          range:
                            type: object
                            properties:
                              firstSlot:
                                type: integer
                                description: 分析対象のブロック生成統計期間の開始スロット番号。
                                example: 0
                              lastSlot:
                                type: integer
                                description: 分析対象のブロック生成統計期間の終了スロット番号。
                                example: 9887
        '400':
          description: 不正なリクエストパラメータまたは不正なリクエスト。
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32602
                  message: 不正なパラメータ
        '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
          enum:
            - '2.0'
        error:
          type: object
          properties:
            code:
              type: integer
            message:
              type: string
  securitySchemes:
    ApiKeyQuery:
      type: apiKey
      in: query
      name: api-key
      description: Helius APIキーは[ダッシュボード](https://dashboard.helius.dev/api-keys)で無料で取得できます。

````