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

> getBlockCommitment gibt das Cluster-Commitment und die stimmgewichtete Stimmenverteilung für einen Solana-Block zurück – überprüfen Sie, wie weitgehend bestätigt oder finalisiert er ist.



## OpenAPI

````yaml de/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: Mainnet-RPC-Endpunkt
  - url: https://devnet.helius-rpc.com
    description: Devnet-RPC-Endpunkt
security: []
paths:
  /:
    post:
      tags:
        - RPC
      summary: getBlockCommitment
      description: Gibt die Commitment-Informationen für einen bestimmten Block zurück.
      operationId: getBlockCommitment
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - jsonrpc
                - id
                - method
                - params
              properties:
                jsonrpc:
                  type: string
                  enum:
                    - '2.0'
                  description: Die JSON-RPC-Protokollversion.
                  default: '2.0'
                id:
                  type: string
                  description: Eine eindeutige Kennung für die Anfrage.
                  example: '1'
                  default: '1'
                method:
                  type: string
                  enum:
                    - getBlockCommitment
                  description: Der Name der RPC-Methode, die aufgerufen werden soll.
                  default: getBlockCommitment
                params:
                  type: array
                  description: Parameter für die Anfrage.
                  default:
                    - 430
                  items:
                    type: integer
                    description: Blocknummer identifiziert durch Slot (als `u64`-Integer).
                    example: 5
      responses:
        '200':
          description: Erfolgreich Block-Commitment abgerufen.
          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: >-
                              Gibt null zurück, wenn der Block unbekannt ist
                              oder von keinem Validator bestätigt wurde.
                          - type: array
                            description: >-
                              Array von `u64`-Integern, die die Menge der
                              Cluster-Einsätze in Lamports aufzeichnen, die auf
                              den Block in jeder Tiefe abgestimmt haben.
                            items:
                              type: integer
                            example:
                              - 0
                              - 0
                              - 0
                              - 0
                              - 0
                              - 10
                              - 32
                      totalStake:
                        type: integer
                        description: >-
                          Gesamter aktiver Einsatz, in Lamports, der aktuellen
                          Epoche.
                        example: 384962848972206900
        '400':
          description: >-
            Schlechte Anfrage - Ungültige Anforderungsparameter oder fehlerhafte
            Anfrage.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32602
                  message: Ungültige Parameter
                id: '1'
        '401':
          description: Nicht autorisiert - Ungültiger oder fehlender API-Schlüssel.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32001
                  message: Nicht autorisiert
                id: '1'
        '429':
          description: Zu viele Anfragen - Ratenbegrenzung überschritten.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32005
                  message: Zu viele Anfragen
                id: '1'
        '500':
          description: Interner Serverfehler - Ein Fehler ist auf dem Server aufgetreten.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32603
                  message: Interner Fehler
                id: '1'
        '503':
          description: >-
            Dienst nicht verfügbar - Der Dienst ist vorübergehend nicht
            verfügbar.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32002
                  message: Dienst nicht verfügbar
                id: '1'
        '504':
          description: >-
            Gateway-Zeitüberschreitung - Die Anfrage hat Zeitüberschreitung
            erreicht.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32003
                  message: Gateway-Zeitüberschreitung
                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: >-
        Ihr Helius API-Schlüssel. Sie können einen kostenlos im
        [Dashboard](https://dashboard.helius.dev/api-keys) erhalten.

````