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

# getBlockHeight

> getBlockHeight gibt die aktuelle Blockhöhe der Solana-Blockchain zurück – die Blöcke unterhalb des neuesten, verwendet für Ablauf der Transaktion und Fortschrittsüberprüfungen.

## Anforderungsparameter

<ParamField body="commitment" type="string">
  Die Verbindlichkeitsstufe für die Anfrage.

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

<ParamField body="minContextSlot" type="number">
  Der minimale Slot, bei dem die Anfrage ausgewertet werden kann.
</ParamField>


## OpenAPI

````yaml de/openapi/rpc-http/getBlockHeight.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: getBlockHeight
      description: Gibt die aktuelle Blockhöhe zurück.
      operationId: getBlockHeight
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - jsonrpc
                - id
                - method
                - params
              properties:
                jsonrpc:
                  type: string
                  enum:
                    - '2.0'
                  description: Die Version des JSON-RPC-Protokolls.
                  default: '2.0'
                id:
                  type: string
                  description: Ein eindeutiger Bezeichner für die Anfrage.
                  example: '1'
                  default: '1'
                method:
                  type: string
                  enum:
                    - getBlockHeight
                  description: Der Name der RPC-Methode, die aufgerufen werden soll.
                  default: getBlockHeight
                params:
                  type: array
                  description: Parameter für die Anfrage.
                  default: []
                  items:
                    type: object
                    description: Konfigurationsoptionen für die Anfrage.
                    properties:
                      commitment:
                        type: string
                        description: Das Verpflichtungsniveau für die Anfrage.
                        enum:
                          - processed
                          - confirmed
                          - finalized
                        example: finalized
                      minContextSlot:
                        type: integer
                        description: >-
                          Der minimale Slot, auf dem die Anfrage ausgewertet
                          werden kann.
                        example: 1
      responses:
        '200':
          description: Die aktuelle Blockhöhe wurde erfolgreich abgerufen.
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                    enum:
                      - '2.0'
                  id:
                    type: string
                  result:
                    type: integer
                    description: Aktuelle Blockhöhe als `u64`.
                    example: 1233
        '400':
          description: Bad Request - Ungültige Anfrageparameter oder fehlerhafte Anfrage.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32602
                  message: Invalid params
                id: '1'
        '401':
          description: Unauthorized - Ungültiger oder fehlender API-Schlüssel.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32001
                  message: Unauthorized
                id: '1'
        '429':
          description: Zu viele Anfragen - Ratenlimit überschritten.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32005
                  message: Too many requests
                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: Internal error
                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: Service unavailable
                id: '1'
        '504':
          description: Gateway Timeout - Die Anfrage ist abgelaufen.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32003
                  message: Gateway timeout
                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.

````