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

# getIdentity

> getIdentity trả về khóa công khai định danh của nút Solana đang xử lý các yêu cầu RPC của bạn — hữu ích để giám sát trình xác thực và gỡ lỗi nhằm xác định nút nào đã phản hồi.



## OpenAPI

````yaml vi/openapi/rpc-http/getIdentity.yaml POST /
openapi: 3.1.0
info:
  title: API RPC Solana
  version: 1.0.0
  description: >-
    API nhận dạng nút dùng để truy xuất khóa công khai duy nhất của trình xác
    thực tại điểm cuối RPC Solana mà bạn hiện đang kết nối.
  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: getIdentity
      description: >
        Truy xuất khóa công khai nhận dạng trình xác thực của nút Solana mà bạn
        đang kết nối.

        API khám phá này trả về mã định danh mật mã duy nhất của nút trình xác
        thực cụ thể

        đang lưu trữ điểm cuối RPC này. Mỗi trình xác thực Solana có một cặp
        khóa nhận dạng riêng biệt,

        đóng vai trò là mã định danh mạng khi tham gia đồng thuận, tạo khối

        và ký phiếu bầu. Đây là API thiết yếu cho các ứng dụng cần xác minh
        trình xác thực cụ thể

        mà chúng đang giao tiếp, các công cụ ánh xạ điểm cuối RPC tới trình xác
        thực cụ thể,

        hệ thống giám sát mạng theo dõi đặc điểm của trình xác thực và các dịch
        vụ cần

        xác định nguồn dữ liệu blockchain mà chúng nhận được.
      operationId: getIdentity
      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:
                    - getIdentity
                  example: getIdentity
                  default: getIdentity
      responses:
        '200':
          description: Đã truy xuất thành công danh tính của nú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: object
                    description: >-
                      Thông tin nhận dạng trình xác thực của nút Solana đang kết
                      nối.
                    properties:
                      identity:
                        type: string
                        description: >-
                          Khóa công khai duy nhất của trình xác thực (được mã
                          hóa base-58) thuộc nút Solana này, đóng vai trò là mã
                          định danh mạng của nút.
                        example: 2r1F4iWqVcb8M1DbAjQuFpebkQHY9hcVU4WuW2DJBppN
              examples:
                response:
                  value:
                    jsonrpc: '2.0'
                    id: '1'
                    result:
                      identity: 2r1F4iWqVcb8M1DbAjQuFpebkQHY9hcVU4WuW2DJBppN
        '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 có
            định dạng sai.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32602
                  message: Tham số không hợp lệ
                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: Không được phép
                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: Quá nhiều yêu cầu
                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: Lỗi nội bộ
                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: Dịch vụ không khả dụng
                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: Hết thời gian chờ cổng kết nối
                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).

````