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

# getBlockCommitment

> 特定のSolanaブロックのクラスタコミットメントとステーク重み付き投票分布を返します — ブロックがバリデータセット全体でどの程度確認または確定されているかを検証するために使用されます。



## OpenAPI

````yaml ja/openapi/rpc-http/getBlockCommitment.yaml POST /
openapi: 3.1.0
info:
  title: Solana RPC API
  version: 1.0.0
  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: getBlockCommitment
      description: 特定のブロックのコミットメント情報を返します。
      operationId: getBlockCommitment
      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:
                    - getBlockCommitment
                  description: 呼び出すRPCメソッドの名前。
                  default: getBlockCommitment
                params:
                  type: array
                  description: リクエストのパラメータ。
                  default:
                    - 430
                  items:
                    type: integer
                    description: スロットで識別されるブロック番号（`u64`整数として）。
                    example: 5
      responses:
        '200':
          description: ブロックコミットメントを正常に取得しました。
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                    enum:
                      - '2.0'
                  id:
                    type: string
                  result:
                    type: object
                    properties:
                      commitment:
                        oneOf:
                          - type: 'null'
                            description: ブロックが不明または検証者によって確認されていない場合はnullを返します。
                          - type: array
                            description: クラスターのステークが各深度でブロックに投票したラメトの`u64`整数の配列。
                            items:
                              type: integer
                            example:
                              - 0
                              - 0
                              - 0
                              - 0
                              - 0
                              - 10
                              - 32
                      totalStake:
                        type: integer
                        description: 現在のエポックの総アクティブステーク（ラメト単位）。
                        example: 384962848972206900
        '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
          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)で無料で取得できます。

````