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

> Получение доказательств отсутствия нуллификаторов в дереве нуллификаторов конфиденциальности.

## Доказательства отсутствия

Передайте от 1 до 1 000 значений нуллификаторов и аккаунт дерева нуллификаторов. Каждый лист должен содержать элемент скалярного поля BN254. Запрос завершается ошибкой, если нуллификатор уже использован или поставлен в очередь для этого дерева. Порядок доказательств соответствует порядку запрошенных листьев.

Каждое доказательство содержит соседний элемент `path`, ограничивающие значения `lowElement` и `highElement` и их индексы, а также корень. Для деревьев нуллификаторов `rootSeq` — это последовательность обновлений дерева, а `rootIndex` — позиция корня в истории корней аккаунта Solana.

## Параметры запроса

**leaves** `array` *required*

Значения нуллификаторов, закодированные в формате base58 как 32-байтовые элементы скалярного поля BN254.

**treeAccount** `string` *required*

Аккаунт дерева, к которому выполняется запрос. Дерево состояний и дерево нуллификаторов используют один аккаунт.


## OpenAPI

````yaml ru/openapi/privacy/getNonInclusionProofs.yaml POST /v1/spr/getNonInclusionProofs
openapi: 3.0.3
info:
  title: API колец конфиденциальности Solana
  version: 0.51.2
  description: >-
    JSON-RPC API индексатора конфиденциальности для зашифрованного состояния,
    истории, доказательств и общедоступных записей реестра.
servers:
  - url: https://devnet.helius-rpc.com
    description: API колец конфиденциальности Solana в Devnet
security: []
paths:
  /v1/spr/getNonInclusionProofs:
    post:
      summary: getNonInclusionProofs
      description: >-
        Получает доказательства отсутствия нуллификаторов в конфиденциальном
        дереве нуллификаторов.
      operationId: getNonInclusionProofs
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
                - jsonrpc
                - id
                - method
                - params
              properties:
                id:
                  type: string
                  description: Идентификатор запроса.
                  default: '1'
                jsonrpc:
                  type: string
                  description: Версия протокола JSON-RPC.
                  enum:
                    - '2.0'
                  default: '2.0'
                method:
                  type: string
                  description: >-
                    Вызываемый метод. Должен соответствовать последнему сегменту
                    пути 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: >-
                        Значения нуллификаторов, закодированные в base58 как
                        32-байтовые элементы скалярного поля BN254.
                    treeAccount:
                      allOf:
                        - $ref: '#/components/schemas/SerializablePubkey'
                      description: >-
                        Аккаунт дерева для запроса. Дерево состояния и дерево
                        нуллификаторов используют один аккаунт.
                  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: Ответ JSON-RPC. Проверьте поле error перед чтением поля result.
          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: Идентификатор запроса.
                  jsonrpc:
                    type: string
                    description: Версия протокола 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: >-
            Запрос отклонен до выполнения. Несоответствие метода и пути,
            повторяющиеся поля метода или пакетный запрос возвращают -32601.
            Нечитаемое или слишком большое тело запроса возвращает -32600.
          content:
            application/json:
              schema:
                type: object
                required:
                  - jsonrpc
                  - id
                  - error
                properties:
                  jsonrpc:
                    type: string
                    enum:
                      - '2.0'
                  id:
                    type: string
                    nullable: true
                    description: >-
                      Идентификатор запроса или null, если тело не является
                      одиночным вызовом JSON-RPC.
                  error:
                    type: object
                    required:
                      - code
                      - message
                    properties:
                      code:
                        type: integer
                      message:
                        type: string
                      data:
                        type: object
                        additionalProperties: true
        '429':
          description: Превышен лимит запросов.
          content:
            application/json:
              schema:
                type: object
                required:
                  - jsonrpc
                  - id
                  - error
                properties:
                  jsonrpc:
                    type: string
                    enum:
                      - '2.0'
                  id:
                    type: string
                    nullable: true
                    description: >-
                      Идентификатор запроса или null, если тело не является
                      одиночным вызовом JSON-RPC.
                  error:
                    type: object
                    required:
                      - code
                      - message
                    properties:
                      code:
                        type: integer
                      message:
                        type: string
                      data:
                        type: object
                        additionalProperties: true
        '500':
          description: Внутренняя ошибка сервера.
          content:
            application/json:
              schema:
                type: object
                required:
                  - jsonrpc
                  - id
                  - error
                properties:
                  jsonrpc:
                    type: string
                    enum:
                      - '2.0'
                  id:
                    type: string
                    nullable: true
                    description: >-
                      Идентификатор запроса или null, если тело не является
                      одиночным вызовом JSON-RPC.
                  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: 32-байтовый хеш, закодированный в base58.
    SerializablePubkey:
      type: string
      description: Публичный ключ Solana, закодированный в base58.
    Context:
      type: object
      required:
        - blockTime
        - slot
      properties:
        blockTime:
          type: integer
          format: int64
        slot:
          type: integer
          format: uint64
          description: >-
            Наибольший слот, сохраненный индексатором, для проверки актуальности
            по слотам.
          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: Позиция `root` в истории ончейн.
          minimum: 0
        rootSeq:
          type: integer
          format: uint64
          description: >-
            Ключ упорядочивания корней: завершенный слот Solana для
            доказательства дерева состояния

            или последовательность обновлений ончейн для доказательства
            индексированного дерева.
          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: Ваш ключ API Helius.

````

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