> ## Documentation Index
> Fetch the complete documentation index at: https://docs.solanatracker.io/llms.txt
> Use this file to discover all available pages before exploring further.

# getVersion

> 读取节点的 Solana 软件版本和功能集标识。

请求配置和错误处理见 [RPC 快速入门](/cn/solana-rpc/quickstart)。计费见[积分与限制](/cn/solana-rpc/credits-and-rate-limits)。


## OpenAPI

````yaml getversion post /
openapi: 3.1.0
info:
  title: Solana RPC
  version: 1.0.0
  description: Solana RPC HTTP method reference.
servers:
  - url: https://rpc-data.solanatracker.io
    description: Mainnet RPC endpoint
security: []
paths:
  /:
    post:
      summary: getVersion
      description: >-
        Returns the Solana node software version (`solana-core`) and optional
        feature-set identifier.
      operationId: getversion
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - jsonrpc
                - id
                - method
              properties:
                jsonrpc:
                  type: string
                  enum:
                    - '2.0'
                  description: The JSON-RPC protocol version.
                  example: '2.0'
                  default: '2.0'
                id:
                  oneOf:
                    - type: string
                    - type: integer
                  description: A unique identifier for the request.
                  example: '1'
                  default: '1'
                method:
                  type: string
                  enum:
                    - getVersion
                  description: The name of the RPC method to invoke.
                  example: getVersion
                  default: getVersion
                params:
                  type: array
                  description: No parameters. Send an empty array or omit.
                  maxItems: 0
                  default: []
            examples:
              sampleRequest:
                value:
                  jsonrpc: '2.0'
                  id: 1
                  method: getVersion
      responses:
        '200':
          description: Successfully retrieved the node version.
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                    enum:
                      - '2.0'
                  id:
                    oneOf:
                      - type: string
                      - type: integer
                  result:
                    type: object
                    required:
                      - solana-core
                    properties:
                      solana-core:
                        type: string
                        description: Node software version string.
                        example: 2.1.16
                      feature-set:
                        type: integer
                        nullable: true
                        description: >-
                          Feature set identifier for the running software (may
                          be null).
                        example: 3271415109
              examples:
                sampleResponse:
                  value:
                    jsonrpc: '2.0'
                    id: 1
                    result:
                      solana-core: 2.1.16
                      feature-set: 3271415109
      security:
        - ApiKeyQuery: []
components:
  securitySchemes:
    ApiKeyQuery:
      type: apiKey
      in: query
      name: api_key

````