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

> Truy xuất các nullifier trong hàng đợi của một cây theo thứ tự trình tự tăng dần.

## Phân trang hàng đợi

Phương thức này hỗ trợ việc bảo trì cây nullifier. Phương thức trả về `result.elements` theo thứ tự `seq` tăng dần, bắt đầu từ và bao gồm `startSeq`. Mỗi phần tử chứa số thứ tự của phần tử đó và nullifier `value` được mã hóa bằng base58.

Để đọc trang tiếp theo, hãy đặt `startSeq` thành giá trị `seq` cuối cùng được trả về cộng một. Trang trống có nghĩa là hiện không còn phần tử nào khác được lập chỉ mục.

## Tham số yêu cầu

**limit** `number` *required*

Số phần tử tối đa cần trả về, từ 1 đến 1.000.

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

Trả về các phần tử trong hàng đợi có seq lớn hơn hoặc bằng giá trị này.

**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/getNullifierQueueElements.yaml POST /v1/spr/getNullifierQueueElements
openapi: 3.0.3
info:
  title: API Solana Privacy Rings
  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à các bản ghi đăng ký công khai.
servers:
  - url: https://devnet.helius-rpc.com
    description: API Solana Privacy Rings trên Devnet
security: []
paths:
  /v1/spr/getNullifierQueueElements:
    post:
      summary: getNullifierQueueElements
      description: >-
        Truy xuất các nullifier trong hàng đợi của một cây theo thứ tự trình tự
        tăng dần.
      operationId: getNullifierQueueElements
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
                - jsonrpc
                - id
                - method
                - params
              properties:
                id:
                  type: string
                  description: ID dùng để xác định 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:
                    - getNullifierQueueElements
                  default: getNullifierQueueElements
                params:
                  type: object
                  required:
                    - treeAccount
                    - limit
                  properties:
                    limit:
                      allOf:
                        - $ref: '#/components/schemas/Limit'
                      description: Số phần tử tối đa cần trả về, từ 1 đến 1.000.
                    startSeq:
                      type: integer
                      format: uint64
                      description: >-
                        Trả về các phần tử trong hàng đợi có seq lớn hơn hoặc
                        bằng giá trị này.
                      minimum: 0
                      maximum: 9223372036854776000
                      default: 0
                    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
                    startSeq: 0
                    limit: 100
            example:
              jsonrpc: '2.0'
              id: '1'
              method: getNullifierQueueElements
              params:
                treeAccount: 33KVhbT4QtdQDrrrGwwThqD47Dh4Q6tA443t9jMNcWFN
                startSeq: 0
                limit: 100
        required: true
      responses:
        '200':
          description: Phản hồi JSON-RPC. Hãy 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
                      - elements
                    properties:
                      context:
                        $ref: '#/components/schemas/Context'
                      elements:
                        type: array
                        items:
                          $ref: '#/components/schemas/NullifierQueueElement'
                    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 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 của 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 của 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 của 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:
    Limit:
      type: integer
      format: uint64
      maximum: 1000
      minimum: 1
    SerializablePubkey:
      type: string
      description: Khóa công khai Solana được mã hóa bằng 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
    NullifierQueueElement:
      type: object
      description: Một nullifier trong hàng đợi, theo thứ tự hàng đợi đầu vào trên chuỗi.
      required:
        - seq
        - value
      properties:
        seq:
          type: integer
          format: uint64
          minimum: 0
        value:
          $ref: '#/components/schemas/Hash'
      additionalProperties: false
    Hash:
      type: string
      description: Hàm băm 32 byte được mã hóa bằng base58.
  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.