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

# getNonInclusionProofs

> Truy xuất bằng chứng cho thấy các nullifier không có trong cây nullifier riêng tư.

## Bằng chứng không thuộc

Cung cấp từ 1 đến 1.000 giá trị nullifier và tài khoản cây nullifier. Mỗi lá phải mã hóa một phần tử trường vô hướng BN254. Yêu cầu sẽ thất bại nếu một nullifier đã được sử dụng hoặc được đưa vào hàng đợi cho cây đó. Các bằng chứng tuân theo thứ tự của các lá được yêu cầu.

Mỗi bằng chứng bao gồm nút anh em `path`, các giá trị biên `lowElement` và `highElement` cùng với chỉ mục của chúng, và gốc. Đối với cây nullifier, `rootSeq` là trình tự cập nhật của cây và `rootIndex` là vị trí của gốc trong lịch sử gốc của tài khoản Solana.

## Tham số yêu cầu

**leaves** `array` *required*

Các giá trị nullifier được mã hóa dưới dạng phần tử trường vô hướng BN254 32 byte theo base58.

**treeAccount** `string` *required*

Tài khoản cây cần truy vấn. Cây trạng thái và cây nullifier dùng chung một tài khoản.


## OpenAPI

````yaml vi/openapi/privacy/getNonInclusionProofs.yaml POST /v1/spr/getNonInclusionProofs
openapi: 3.0.3
info:
  title: API Vòng riêng tư Solana
  version: 0.51.2
  description: >-
    API JSON-RPC của trình lập chỉ mục quyền riêng tư dành cho trạng thái mã
    hóa, lịch sử, bằng chứng và bản ghi đăng ký công khai.
servers:
  - url: https://devnet.helius-rpc.com
    description: API Vòng riêng tư Solana trên Devnet
security: []
paths:
  /v1/spr/getNonInclusionProofs:
    post:
      summary: getNonInclusionProofs
      description: >-
        Truy xuất các bằng chứng cho thấy các nullifier không có trong cây
        nullifier riêng tư.
      operationId: getNonInclusionProofs
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
                - jsonrpc
                - id
                - method
                - params
              properties:
                id:
                  type: string
                  description: ID dùng để nhận dạng yêu cầu.
                  default: '1'
                jsonrpc:
                  type: string
                  description: Phiên bản giao thức JSON-RPC.
                  enum:
                    - '2.0'
                  default: '2.0'
                method:
                  type: string
                  description: >-
                    Phương thức cần gọi. Phải khớp với phân đoạn cuối cùng của
                    đường dẫn URL.
                  enum:
                    - getNonInclusionProofs
                  default: getNonInclusionProofs
                params:
                  type: object
                  required:
                    - treeAccount
                    - leaves
                  properties:
                    leaves:
                      type: array
                      items:
                        $ref: '#/components/schemas/Hash'
                      minItems: 1
                      maxItems: 1000
                      description: >-
                        Các giá trị nullifier được mã hóa base58 dưới dạng phần
                        tử trường vô hướng BN254 dài 32 byte.
                    treeAccount:
                      allOf:
                        - $ref: '#/components/schemas/SerializablePubkey'
                      description: >-
                        Tài khoản cây cần truy vấn. Cây trạng thái và cây
                        nullifier dùng chung một tài khoản.
                  additionalProperties: false
                  example:
                    treeAccount: 33KVhbT4QtdQDrrrGwwThqD47Dh4Q6tA443t9jMNcWFN
                    leaves:
                      - '11111111111111111111111111111112'
            example:
              jsonrpc: '2.0'
              id: '1'
              method: getNonInclusionProofs
              params:
                treeAccount: 33KVhbT4QtdQDrrrGwwThqD47Dh4Q6tA443t9jMNcWFN
                leaves:
                  - '11111111111111111111111111111112'
        required: true
      responses:
        '200':
          description: Phản hồi JSON-RPC. Kiểm tra lỗi trước khi đọc kết quả.
          content:
            application/json:
              schema:
                type: object
                required:
                  - jsonrpc
                  - id
                properties:
                  error:
                    type: object
                    required:
                      - code
                      - message
                    properties:
                      code:
                        type: integer
                      message:
                        type: string
                      data:
                        type: object
                        additionalProperties: true
                  id:
                    type: string
                    description: ID của yêu cầu.
                  jsonrpc:
                    type: string
                    description: Phiên bản của giao thức JSON-RPC.
                    enum:
                      - '2.0'
                  result:
                    type: object
                    required:
                      - context
                      - proofs
                    properties:
                      context:
                        $ref: '#/components/schemas/Context'
                      proofs:
                        type: array
                        items:
                          $ref: '#/components/schemas/NonInclusionProof'
                    additionalProperties: false
        '400':
          description: >-
            Bị từ chối trước khi thực thi. Phương thức và đường dẫn không khớp,
            trường phương thức bị trùng lặp hoặc yêu cầu theo lô sẽ trả về
            -32601. Nội dung yêu cầu không thể đọc hoặc quá lớn sẽ trả về
            -32600.
          content:
            application/json:
              schema:
                type: object
                required:
                  - jsonrpc
                  - id
                  - error
                properties:
                  jsonrpc:
                    type: string
                    enum:
                      - '2.0'
                  id:
                    type: string
                    nullable: true
                    description: >-
                      ID yêu cầu hoặc null khi nội dung không phải là một lệnh
                      gọi JSON-RPC đơn lẻ.
                  error:
                    type: object
                    required:
                      - code
                      - message
                    properties:
                      code:
                        type: integer
                      message:
                        type: string
                      data:
                        type: object
                        additionalProperties: true
        '429':
          description: Đã vượt quá giới hạn tốc độ.
          content:
            application/json:
              schema:
                type: object
                required:
                  - jsonrpc
                  - id
                  - error
                properties:
                  jsonrpc:
                    type: string
                    enum:
                      - '2.0'
                  id:
                    type: string
                    nullable: true
                    description: >-
                      ID yêu cầu hoặc null khi nội dung không phải là một lệnh
                      gọi JSON-RPC đơn lẻ.
                  error:
                    type: object
                    required:
                      - code
                      - message
                    properties:
                      code:
                        type: integer
                      message:
                        type: string
                      data:
                        type: object
                        additionalProperties: true
        '500':
          description: Lỗi máy chủ nội bộ.
          content:
            application/json:
              schema:
                type: object
                required:
                  - jsonrpc
                  - id
                  - error
                properties:
                  jsonrpc:
                    type: string
                    enum:
                      - '2.0'
                  id:
                    type: string
                    nullable: true
                    description: >-
                      ID yêu cầu hoặc null khi nội dung không phải là một lệnh
                      gọi JSON-RPC đơn lẻ.
                  error:
                    type: object
                    required:
                      - code
                      - message
                    properties:
                      code:
                        type: integer
                      message:
                        type: string
                      data:
                        type: object
                        additionalProperties: true
      security:
        - ApiKeyQuery: []
components:
  schemas:
    Hash:
      type: string
      description: Hàm băm 32 byte được mã hóa base58.
    SerializablePubkey:
      type: string
      description: Khóa công khai Solana được mã hóa base58.
    Context:
      type: object
      required:
        - blockTime
        - slot
      properties:
        blockTime:
          type: integer
          format: int64
        slot:
          type: integer
          format: uint64
          description: >-
            Slot cao nhất mà trình lập chỉ mục đã lưu bền vững, dùng để kiểm tra
            độ mới dựa trên slot.
          minimum: 0
    NonInclusionProof:
      type: object
      required:
        - leaf
        - merkleContext
        - path
        - lowElement
        - lowElementIndex
        - highElement
        - highElementIndex
        - root
        - rootSeq
        - rootIndex
      properties:
        highElement:
          $ref: '#/components/schemas/Hash'
        highElementIndex:
          type: integer
          format: uint64
          minimum: 0
        leaf:
          $ref: '#/components/schemas/Hash'
        lowElement:
          $ref: '#/components/schemas/Hash'
        lowElementIndex:
          type: integer
          format: uint64
          minimum: 0
        merkleContext:
          $ref: '#/components/schemas/MerkleContext'
        path:
          type: array
          items:
            $ref: '#/components/schemas/Hash'
        root:
          $ref: '#/components/schemas/Hash'
        rootIndex:
          type: integer
          format: uint16
          description: Vị trí lịch sử trên chuỗi của `root`.
          minimum: 0
        rootSeq:
          type: integer
          format: uint64
          description: >-
            Khóa sắp thứ tự gốc: slot Solana đã hoàn tất đối với bằng chứng cây
            trạng thái,

            hoặc số thứ tự cập nhật trên chuỗi đối với bằng chứng cây được lập
            chỉ mục.
          minimum: 0
      additionalProperties: false
    MerkleContext:
      type: object
      required:
        - treeType
        - tree
      properties:
        tree:
          $ref: '#/components/schemas/SerializablePubkey'
        treeType:
          type: integer
          format: uint16
          minimum: 0
      additionalProperties: false
  securitySchemes:
    ApiKeyQuery:
      type: apiKey
      in: query
      name: api-key
      description: Khóa API Helius của bạn.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.