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

# getVersion

> Trả về phiên bản Solana hiện đang chạy trên nút.



## OpenAPI

````yaml vi/openapi/rpc-http/getVersion.yaml POST /
openapi: 3.1.0
info:
  title: Solana RPC API
  version: 1.0.0
  description: >-
    API thông tin thời gian chạy để truy xuất chi tiết phiên bản phần mềm
    blockchain Solana và mã định danh bộ tính năng nhằm xác minh tính tương
    thích.
  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: getVersion
      description: >
        Truy xuất phiên bản phần mềm hiện tại và thông tin bộ tính năng của nút
        Solana.

        API thiết yếu này cung cấp thông tin chi tiết về môi trường thời gian
        chạy của blockchain,

        giúp nhà phát triển bảo đảm tính tương thích giữa ứng dụng của họ và
        mạng.

        Thông tin phiên bản bao gồm cả số phiên bản phát hành của phần mềm lõi
        Solana và một

        mã định danh bộ tính năng duy nhất đại diện cho các chức năng cụ thể
        được bật trên

        nút. Thông tin này rất quan trọng đối với nhà phát triển DApp, đơn vị
        vận hành nút và các công cụ cần

        xác minh tính tương thích với mạng hoặc triển khai hành vi dành riêng
        cho từng phiên bản.
      operationId: getVersion
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                jsonrpc:
                  type: string
                  enum:
                    - '2.0'
                  description: Phiên bản giao thức JSON-RPC.
                  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
                  enum:
                    - getVersion
                  description: Tên của phương thức RPC cần gọi.
                  example: getVersion
                  default: getVersion
                params:
                  type: array
                  description: Không yêu cầu tham số.
                  maxItems: 0
      responses:
        '200':
          description: Đã truy xuất thành công thông tin chi tiết về phiên bản Solana.
          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: object
                    description: Thông tin chi tiết về phiên bản Solana.
                    properties:
                      solana-core:
                        type: string
                        description: >-
                          Phiên bản phát hành của phần mềm nút blockchain Solana
                          đang chạy trên trình xác thực này.
                        example: 1.16.7
                      feature-set:
                        type: integer
                        description: >-
                          Mã định danh số duy nhất đại diện cho bộ tính năng
                          Solana cụ thể hiện đang hoạt động.
                        example: 2891131721
              examples:
                default:
                  $ref: '#/components/examples/getVersionResponse'
        '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
            không đúng đị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: Không được phép - 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: Hết thời gian chờ cổng kết nối - 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:
  examples:
    getVersionResponse:
      value:
        jsonrpc: '2.0'
        id: '1'
        result:
          solana-core: 1.16.7
          feature-set: 2891131721
  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).

````