> ## 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 ko/openapi/privacy/getNonInclusionProofs.yaml POST /v1/spr/getNonInclusionProofs
openapi: 3.0.3
info:
  title: Solana 프라이버시 링 API
  version: 0.51.2
  description: 암호화된 상태, 기록, 증명 및 공개 레지스트리 레코드를 위한 프라이버시 인덱서 JSON-RPC API입니다.
servers:
  - url: https://devnet.helius-rpc.com
    description: Devnet Solana 프라이버시 링 API
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: 요청을 식별하는 ID입니다.
                  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 응답입니다. result를 읽기 전에 error를 확인하세요.
          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입니다.
                  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: 요청 ID입니다. 본문이 단일 JSON-RPC 호출이 아니면 null입니다.
                  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: 요청 ID입니다. 본문이 단일 JSON-RPC 호출이 아니면 null입니다.
                  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: 요청 ID입니다. 본문이 단일 JSON-RPC 호출이 아니면 null입니다.
                  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: base58로 인코딩된 32바이트 해시입니다.
    SerializablePubkey:
      type: string
      description: base58로 인코딩된 Solana 공개 키입니다.
    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: Helius API 키입니다.

````

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