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

# getHealth

> Trả về trạng thái hoạt động hiện tại của nút. Một nút được coi là hoạt động tốt nếu nằm trong phạm vi `HEALTH_CHECK_SLOT_DISTANCE` slot so với slot mới nhất đã được cụm xác nhận.



## OpenAPI

````yaml vi/openapi/rpc-http/getHealth.yaml POST /
openapi: 3.1.0
info:
  title: API RPC Solana
  version: 1.0.0
  description: >-
    API giám sát nút để kiểm tra trạng thái hoạt động và tình trạng đồng bộ của
    trình xác thực Solana, nhằm xác minh độ tin cậy của dịch vụ và khả năng kết
    nối blockchain.
  license:
    name: Apache 2.0
    url: https://www.apache.org/licenses/LICENSE-2.0.html
servers:
  - url: https://mainnet.helius-rpc.com
    description: Điểm cuối RPC Mainnet
  - url: https://devnet.helius-rpc.com
    description: Điểm cuối RPC Devnet
security: []
paths:
  /:
    post:
      tags:
        - RPC
      summary: getHealth
      description: >
        Kiểm tra xem nút Solana có hoạt động bình thường và được đồng bộ với
        mạng hay không.

        API giám sát thiết yếu này cung cấp một chỉ báo trạng thái đơn giản để
        xác minh rằng 

        điểm cuối RPC đang hoạt động và theo kịp blockchain. Trả về phản hồi 

        thành công nếu nút ở trạng thái tốt hoặc phản hồi lỗi kèm thông tin chẩn
        đoán 

        chi tiết nếu nút gặp sự cố, chẳng hạn như bị chậm trong quá trình 

        đồng bộ blockchain. API này rất quan trọng đối với các hệ thống giám sát
        hạ tầng, bảng điều khiển độ tin cậy,

        cấu hình có tính sẵn sàng cao, kiểm tra tình trạng ứng dụng và mọi dịch
        vụ cần xác nhận

        rằng điểm cuối RPC Solana đang hoạt động bình thường trước khi gửi yêu
        cầu giao dịch.
      operationId: getHealth
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                jsonrpc:
                  type: string
                  description: Phiên bản giao thức JSON-RPC.
                  enum:
                    - '2.0'
                  example: '2.0'
                  default: '2.0'
                id:
                  type: string
                  description: Mã định danh duy nhất cho yêu cầu.
                  example: '1'
                  default: '1'
                method:
                  type: string
                  description: Tên của phương thức RPC cần gọi.
                  enum:
                    - getHealth
                  example: getHealth
                  default: getHealth
      responses:
        '200':
          description: Nút đang ở trạng thái tốt.
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                    description: Phiên bản giao thức JSON-RPC.
                    enum:
                      - '2.0'
                    example: '2.0'
                  id:
                    type: string
                    description: Mã định danh khớp với yêu cầu.
                    example: '1'
                  result:
                    type: string
                    description: >-
                      Chỉ báo trạng thái xác nhận nút đang hoạt động và được
                      đồng bộ với mạng Solana.
                    example: ok
              examples:
                response:
                  value:
                    jsonrpc: '2.0'
                    id: '1'
                    result: ok
        '400':
          description: >-
            Yêu cầu không hợp lệ - Tham số yêu cầu không hợp lệ hoặc yêu cầu sai
            định dạng.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32602
                  message: Invalid params
                id: '1'
        '401':
          description: Chưa được xác thực - Khóa API không hợp lệ hoặc bị thiếu.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32001
                  message: Unauthorized
                id: '1'
        '429':
          description: Quá nhiều yêu cầu - Đã vượt quá giới hạn tốc độ.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32005
                  message: Too many requests
                id: '1'
        '500':
          description: Lỗi máy chủ nội bộ - Đã xảy ra lỗi trên máy chủ.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32603
                  message: Internal error
                id: '1'
        '503':
          description: Dịch vụ không khả dụng - Dịch vụ tạm thời không khả dụng.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32002
                  message: Service unavailable
                id: '1'
        '504':
          description: Cổng kết nối hết thời gian chờ - Yêu cầu đã hết thời gian chờ.
          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
          description: Phiên bản giao thức JSON-RPC.
          enum:
            - '2.0'
          example: '2.0'
        error:
          type: object
          properties:
            code:
              type: integer
              description: Mã lỗi.
              example: -32602
            message:
              type: string
              description: Thông báo lỗi.
            data:
              type: object
              description: Dữ liệu bổ sung về lỗi.
        id:
          type: string
          description: Mã định danh khớp với yêu cầu.
          example: '1'
  securitySchemes:
    ApiKeyQuery:
      type: apiKey
      in: query
      name: api-key
      description: >-
        Khóa API Helius của bạn. Bạn có thể nhận khóa miễn phí trong [bảng điều
        khiển](https://dashboard.helius.dev/api-keys).

````