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

# getNullifierQueueElements

> ツリーのキューに入っている Nullifier をシーケンスの昇順で取得します。

## キューのページネーション

このメソッドは Nullifier ツリーのメンテナンスをサポートします。`startSeq` から開始し、`seq` の昇順で `result.elements` を返します。開始位置は範囲に含まれます。各要素には、シーケンス番号と base58 でエンコードされた Nullifier `value` が含まれます。

次のページを読み取るには、`startSeq` を、最後に返された `seq` に 1 を加えた値に設定します。空のページが返された場合、現在インデックス化されている後続の要素はありません。

## リクエストパラメータ

**limit** `number` *required*

返す要素の最大数です。1～1,000 の範囲で指定します。

**startSeq** `number` (default: 0)

seq がこの値以上である、キュー内の要素を返します。

**treeAccount** `string` *required*

クエリ対象のツリーアカウントです。ステートツリーと Nullifier ツリーは 1 つのアカウントを共有します。


## OpenAPI

````yaml ja/openapi/privacy/getNullifierQueueElements.yaml POST /v1/spr/getNullifierQueueElements
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/getNullifierQueueElements:
    post:
      summary: getNullifierQueueElements
      description: ツリーのキュー内にある Nullifier をシーケンスの昇順で取得します。
      operationId: getNullifierQueueElements
      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:
                    - getNullifierQueueElements
                  default: getNullifierQueueElements
                params:
                  type: object
                  required:
                    - treeAccount
                    - limit
                  properties:
                    limit:
                      allOf:
                        - $ref: '#/components/schemas/Limit'
                      description: 返す要素の最大数。1〜1,000 です。
                    startSeq:
                      type: integer
                      format: uint64
                      description: seq がこの値以上であるキュー内の要素を返します。
                      minimum: 0
                      maximum: 9223372036854776000
                      default: 0
                    treeAccount:
                      allOf:
                        - $ref: '#/components/schemas/SerializablePubkey'
                      description: クエリ対象のツリーアカウント。状態ツリーと Nullifier ツリーは 1 つのアカウントを共有します。
                  additionalProperties: false
                  example:
                    treeAccount: 33KVhbT4QtdQDrrrGwwThqD47Dh4Q6tA443t9jMNcWFN
                    startSeq: 0
                    limit: 100
            example:
              jsonrpc: '2.0'
              id: '1'
              method: getNullifierQueueElements
              params:
                treeAccount: 33KVhbT4QtdQDrrrGwwThqD47Dh4Q6tA443t9jMNcWFN
                startSeq: 0
                limit: 100
        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
                      - elements
                    properties:
                      context:
                        $ref: '#/components/schemas/Context'
                      elements:
                        type: array
                        items:
                          $ref: '#/components/schemas/NullifierQueueElement'
                    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:
    Limit:
      type: integer
      format: uint64
      maximum: 1000
      minimum: 1
    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
    NullifierQueueElement:
      type: object
      description: オンチェーンの入力キュー順に並んだ、キュー内の 1 つの Nullifier。
      required:
        - seq
        - value
      properties:
        seq:
          type: integer
          format: uint64
          minimum: 0
        value:
          $ref: '#/components/schemas/Hash'
      additionalProperties: false
    Hash:
      type: string
      description: base58 でエンコードされた 32 バイトのハッシュ。
  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.