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

> Rufe Nachweise ab, dass Nullifier in einem Privacy-Nullifier-Baum fehlen.

## Nichtzugehörigkeitsnachweise

Gib zwischen 1 und 1.000 Nullifier-Werte sowie den Account des Nullifier-Baums an. Jedes Blatt muss ein BN254-Skalarfeldelement codieren. Der request schlägt fehl, wenn ein Nullifier bereits verwendet wird oder für diesen Baum in der Warteschlange steht. Die Reihenfolge der Nachweise entspricht der Reihenfolge der angeforderten Blätter.

Jeder Nachweis enthält das benachbarte `path`, die begrenzenden Werte `lowElement` und `highElement` sowie deren Indizes und die Wurzel. Bei Nullifier-Bäumen ist `rootSeq` die Aktualisierungssequenz des Baums und `rootIndex` die Position der Wurzel im Wurzelverlauf des Solana-Accounts.

## Request-Parameter

**leaves** `array` *required*

Als base58 codierte Nullifier-Werte, die 32 Byte große BN254-Skalarfeldelemente darstellen.

**treeAccount** `string` *required*

Abzufragender Baum-Account. Zustandsbaum und Nullifier-Baum verwenden denselben Account.


## OpenAPI

````yaml de/openapi/privacy/getNonInclusionProofs.yaml POST /v1/spr/getNonInclusionProofs
openapi: 3.0.3
info:
  title: Solana Privacy Rings API
  version: 0.51.2
  description: >-
    JSON-RPC API eines Datenschutz-Indexers für verschlüsselte Zustände,
    Verläufe, Nachweise und öffentliche Registereinträge.
servers:
  - url: https://devnet.helius-rpc.com
    description: Solana Privacy Rings API für Devnet
security: []
paths:
  /v1/spr/getNonInclusionProofs:
    post:
      summary: getNonInclusionProofs
      description: >-
        Rufe Nachweise ab, dass Nullifier in einem Datenschutz-Nullifier-Baum
        fehlen.
      operationId: getNonInclusionProofs
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
                - jsonrpc
                - id
                - method
                - params
              properties:
                id:
                  type: string
                  description: Eine ID zur Identifizierung des request.
                  default: '1'
                jsonrpc:
                  type: string
                  description: Die Version des JSON-RPC-Protokolls.
                  enum:
                    - '2.0'
                  default: '2.0'
                method:
                  type: string
                  description: >-
                    Die aufzurufende Methode. Sie muss mit dem letzten Segment
                    des URL-Pfads übereinstimmen.
                  enum:
                    - getNonInclusionProofs
                  default: getNonInclusionProofs
                params:
                  type: object
                  required:
                    - treeAccount
                    - leaves
                  properties:
                    leaves:
                      type: array
                      items:
                        $ref: '#/components/schemas/Hash'
                      minItems: 1
                      maxItems: 1000
                      description: >-
                        Nullifier-Werte, codiert als 32-Byte-Skalarfeldelemente
                        von BN254 im base58-Format.
                    treeAccount:
                      allOf:
                        - $ref: '#/components/schemas/SerializablePubkey'
                      description: >-
                        Abzufragendes Baumkonto. Zustandsbaum und Nullifier-Baum
                        verwenden dasselbe Konto.
                  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 response. Prüfe error, bevor du result liest.
          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: Die ID des request.
                  jsonrpc:
                    type: string
                    description: Die Version des JSON-RPC-Protokolls.
                    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: >-
            Vor der Ausführung abgelehnt. Wenn Methode und Pfad nicht
            übereinstimmen, Methodenfelder doppelt vorkommen oder es sich um
            einen Batch-request handelt, wird -32601 zurückgegeben. Bei einem
            nicht lesbaren oder zu großen Body wird -32600 zurückgegeben.
          content:
            application/json:
              schema:
                type: object
                required:
                  - jsonrpc
                  - id
                  - error
                properties:
                  jsonrpc:
                    type: string
                    enum:
                      - '2.0'
                  id:
                    type: string
                    nullable: true
                    description: >-
                      Die ID des request oder null, wenn der Body keinen
                      einzelnen JSON-RPC-Aufruf enthält.
                  error:
                    type: object
                    required:
                      - code
                      - message
                    properties:
                      code:
                        type: integer
                      message:
                        type: string
                      data:
                        type: object
                        additionalProperties: true
        '429':
          description: Rate limit überschritten.
          content:
            application/json:
              schema:
                type: object
                required:
                  - jsonrpc
                  - id
                  - error
                properties:
                  jsonrpc:
                    type: string
                    enum:
                      - '2.0'
                  id:
                    type: string
                    nullable: true
                    description: >-
                      Die ID des request oder null, wenn der Body keinen
                      einzelnen JSON-RPC-Aufruf enthält.
                  error:
                    type: object
                    required:
                      - code
                      - message
                    properties:
                      code:
                        type: integer
                      message:
                        type: string
                      data:
                        type: object
                        additionalProperties: true
        '500':
          description: Interner Serverfehler.
          content:
            application/json:
              schema:
                type: object
                required:
                  - jsonrpc
                  - id
                  - error
                properties:
                  jsonrpc:
                    type: string
                    enum:
                      - '2.0'
                  id:
                    type: string
                    nullable: true
                    description: >-
                      Die ID des request oder null, wenn der Body keinen
                      einzelnen JSON-RPC-Aufruf enthält.
                  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: Ein base58-codierter 32-Byte-Hash.
    SerializablePubkey:
      type: string
      description: Ein base58-codierter öffentlicher Solana-Schlüssel.
    Context:
      type: object
      required:
        - blockTime
        - slot
      properties:
        blockTime:
          type: integer
          format: int64
        slot:
          type: integer
          format: uint64
          description: >-
            Höchster slot, den der Indexer dauerhaft gespeichert hat, für
            slot-basierte Aktualitätsprüfungen.
          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: On-Chain-Verlaufsposition für `root`.
          minimum: 0
        rootSeq:
          type: integer
          format: uint64
          description: >-
            Sortierschlüssel der Wurzel: der abgeschlossene Solana-slot für
            einen Zustandsbaumnachweis

            oder die On-Chain-Aktualisierungssequenz für einen Nachweis eines
            indexierten Baums.
          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: Dein Helius API key.

````

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