> ## Documentation Index
> Fetch the complete documentation index at: https://docs.solanatracker.io/llms.txt
> Use this file to discover all available pages before exploring further.

# getNftEditions DAS 方法

> 列出主版本 NFT 的印刷版本，包含每个版本的 mint、账户和编号。查看 getNftEditions 的参数和代码示例。

返回主版本的 `supply` 和 `max_supply`，以及一页版本列表。也可使用 `get_nft_editions` 调用。

* `mintAddress` 是 Token Metadata 主版本 NFT 的 mint。没有主版本的 mint 会返回 "Master Edition not found" 错误。
* 版本按版本账户地址排序，而不是按版本编号。
* 无限版本的 `max_supply` 为 `null`。
* 使用 `page`（从 1 开始）分页，或将 `after` 设为收到的最后一个 `edition_address`。`limit` 默认为 1000，且不能超过 1000。`cursor` 会被接受但不生效。
* 页面为空时，响应中不包含 `editions`。
* 消耗 1 积分，并计入套餐的 DAS RPS 限制。

请求配置和错误处理见 [RPC 快速入门](https://docs.solanatracker.io/cn/solana-rpc/quickstart.md)。计费见[积分与限制](https://docs.solanatracker.io/cn/solana-rpc/credits-and-rate-limits.md)。

全部 DAS 方法见 [DAS API 概览](https://docs.solanatracker.io/cn/solana-rpc/das-api.md)。


## OpenAPI

````yaml getnfteditions post /
openapi: 3.1.0
info:
  title: Solana RPC
  version: 1.0.0
  description: Solana RPC HTTP method reference.
servers:
  - url: https://rpc-mainnet.solanatracker.io
    description: Mainnet RPC endpoint
security: []
paths:
  /:
    post:
      summary: getNftEditions
      description: >-
        List the print editions of a Token Metadata master edition NFT, with
        each edition's mint, edition account and number.
      operationId: getnfteditions
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                jsonrpc:
                  allOf:
                    - type: string
                      description: The JSON-RPC protocol version.
                      example: '2.0'
                      enum:
                        - '2.0'
                id:
                  allOf:
                    - type: string
                      description: A unique identifier for the request.
                      example: '1'
                method:
                  allOf:
                    - type: string
                      description: The name of the RPC method to invoke.
                      example: getNftEditions
                      enum:
                        - getNftEditions
                params:
                  allOf:
                    - type: object
                      description: >-
                        Master edition mint and pagination. Unknown keys are
                        rejected.
                      properties:
                        mintAddress:
                          type: string
                          description: Mint of the master edition NFT.
                          example: Ey2Qb8kLctbchQsMnhZs5DjY32To2QtPuXNwWvk4NosL
                        limit:
                          type: integer
                          description: Maximum items per page. Default 1000, maximum 1000.
                          example: 100
                          default: 1000
                          minimum: 1
                          maximum: 1000
                        page:
                          type: integer
                          description: >-
                            1-based page number. Cannot be combined with
                            `before`, `after` or `cursor`.
                          example: 1
                          minimum: 1
                        after:
                          type: string
                          description: >-
                            Return editions whose edition account address is
                            higher than this one (exclusive). Cannot be combined
                            with `page`.
                        before:
                          type: string
                          description: >-
                            Return editions whose edition account address is
                            lower than this one (exclusive). Cannot be combined
                            with `page`.
                        cursor:
                          type: string
                          description: >-
                            Accepted for compatibility and ignored; page with
                            `page` or `after`.
                      required:
                        - mintAddress
              required:
                - jsonrpc
                - id
                - method
                - params
            examples:
              firstPageExample:
                summary: First page of editions
                value:
                  jsonrpc: '2.0'
                  id: 1
                  method: getNftEditions
                  params:
                    mintAddress: Ey2Qb8kLctbchQsMnhZs5DjY32To2QtPuXNwWvk4NosL
                    limit: 2
              pageExample:
                summary: Second page
                value:
                  jsonrpc: '2.0'
                  id: 1
                  method: getNftEditions
                  params:
                    mintAddress: Ey2Qb8kLctbchQsMnhZs5DjY32To2QtPuXNwWvk4NosL
                    page: 2
                    limit: 2
      responses:
        '200':
          description: Successfully retrieved editions.
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    allOf:
                      - type: string
                        description: The JSON-RPC protocol version.
                        example: '2.0'
                        enum:
                          - '2.0'
                  id:
                    allOf:
                      - type: string
                        description: Identifier matching the request.
                        example: '1'
                  result:
                    allOf:
                      - type: object
                        description: Master edition supply and a page of editions.
                        properties:
                          total:
                            type: integer
                            description: Number of editions on this page.
                            example: 2
                          limit:
                            type: integer
                            description: Page size used.
                            example: 2
                          page:
                            type: integer
                            description: Echoed when paging by `page`.
                          master_edition_address:
                            type: string
                            description: Master edition account.
                          supply:
                            type: integer
                            description: Editions printed so far.
                            example: 63
                          max_supply:
                            type:
                              - integer
                              - 'null'
                            description: Maximum editions, `null` when unlimited.
                          editions:
                            type: array
                            description: >-
                              Editions, ordered by edition account address. Left
                              out when the page is empty.
                            items:
                              type: object
                              description: An edition.
                              properties:
                                mint_address:
                                  type: string
                                  description: Mint of the edition NFT.
                                edition_address:
                                  type: string
                                  description: Edition account.
                                edition_number:
                                  type: integer
                                  description: Edition number.
              examples:
                example:
                  summary: Successful response
                  value:
                    jsonrpc: '2.0'
                    id: 1
                    result:
                      total: 2
                      limit: 2
                      master_edition_address: B1rADWGjAKbZYVHMYhS5ZKyMbqFB65vmNNxUXdgFBoh3
                      supply: 63
                      max_supply: 69
                      editions:
                        - mint_address: 3wEbogFD59ihp6BMG3fSWN3pmJZz7aHZWo1TQrbsLuMD
                          edition_address: 7Atmc8eC2CovjDTvsNYoAinXNfSHQjzVp3bJs9PksFtN
                          edition_number: 17
                        - mint_address: 9t5sHQQLuvLEzYsEeuWNi4DyXkFnsgTerRpy3Db94CwV
                          edition_address: Borqy3dEjw9az7Uj9nW69A9ZDansFGHWEggUx7tkv44f
                          edition_number: 4
        '400':
          description: Bad Request - Invalid request parameters or malformed request.
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    allOf:
                      - type: string
                        description: The JSON-RPC protocol version.
                        example: '2.0'
                        enum:
                          - '2.0'
                  error:
                    allOf:
                      - type: object
                        properties:
                          code:
                            type: integer
                            description: The error code.
                            example: -32602
                          message:
                            type: string
                            description: The error message.
                          data:
                            type: object
                            description: Additional data about the error.
                  id:
                    allOf:
                      - type: string
                        description: Identifier matching the request.
                        example: '1'
                refIdentifier: '#/components/schemas/ErrorResponse'
              examples:
                example:
                  value:
                    jsonrpc: '2.0'
                    error:
                      code: -32602
                      message: Invalid params
                    id: 1
        '401':
          description: Unauthorized - Invalid or missing API key.
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    allOf:
                      - type: string
                        description: The JSON-RPC protocol version.
                        example: '2.0'
                        enum:
                          - '2.0'
                  error:
                    allOf:
                      - type: object
                        properties:
                          code:
                            type: integer
                            description: The error code.
                            example: -32602
                          message:
                            type: string
                            description: The error message.
                          data:
                            type: object
                            description: Additional data about the error.
                  id:
                    allOf:
                      - type: string
                        description: Identifier matching the request.
                        example: '1'
                refIdentifier: '#/components/schemas/ErrorResponse'
              examples:
                example:
                  value:
                    jsonrpc: '2.0'
                    error:
                      code: -32001
                      message: Unauthorized
                    id: 1
        '429':
          description: Too Many Requests - Rate limit exceeded.
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    allOf:
                      - type: string
                        description: The JSON-RPC protocol version.
                        example: '2.0'
                        enum:
                          - '2.0'
                  error:
                    allOf:
                      - type: object
                        properties:
                          code:
                            type: integer
                            description: The error code.
                            example: -32602
                          message:
                            type: string
                            description: The error message.
                          data:
                            type: object
                            description: Additional data about the error.
                  id:
                    allOf:
                      - type: string
                        description: Identifier matching the request.
                        example: '1'
                refIdentifier: '#/components/schemas/ErrorResponse'
              examples:
                example:
                  value:
                    jsonrpc: '2.0'
                    error:
                      code: -32005
                      message: Too many requests
                    id: 1
        '500':
          description: Internal Server Error - An error occurred on the server.
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    allOf:
                      - type: string
                        description: The JSON-RPC protocol version.
                        example: '2.0'
                        enum:
                          - '2.0'
                  error:
                    allOf:
                      - type: object
                        properties:
                          code:
                            type: integer
                            description: The error code.
                            example: -32602
                          message:
                            type: string
                            description: The error message.
                          data:
                            type: object
                            description: Additional data about the error.
                  id:
                    allOf:
                      - type: string
                        description: Identifier matching the request.
                        example: '1'
                refIdentifier: '#/components/schemas/ErrorResponse'
              examples:
                example:
                  value:
                    jsonrpc: '2.0'
                    error:
                      code: -32603
                      message: Internal error
                    id: 1
        '503':
          description: Service Unavailable - The service is temporarily unavailable.
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    allOf:
                      - type: string
                        description: The JSON-RPC protocol version.
                        example: '2.0'
                        enum:
                          - '2.0'
                  error:
                    allOf:
                      - type: object
                        properties:
                          code:
                            type: integer
                            description: The error code.
                            example: -32602
                          message:
                            type: string
                            description: The error message.
                          data:
                            type: object
                            description: Additional data about the error.
                  id:
                    allOf:
                      - type: string
                        description: Identifier matching the request.
                        example: '1'
                refIdentifier: '#/components/schemas/ErrorResponse'
              examples:
                example:
                  value:
                    jsonrpc: '2.0'
                    error:
                      code: -32002
                      message: Service unavailable
                    id: 1
        '504':
          description: Gateway Timeout - The request timed out.
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    allOf:
                      - type: string
                        description: The JSON-RPC protocol version.
                        example: '2.0'
                        enum:
                          - '2.0'
                  error:
                    allOf:
                      - type: object
                        properties:
                          code:
                            type: integer
                            description: The error code.
                            example: -32602
                          message:
                            type: string
                            description: The error message.
                          data:
                            type: object
                            description: Additional data about the error.
                  id:
                    allOf:
                      - type: string
                        description: Identifier matching the request.
                        example: '1'
                refIdentifier: '#/components/schemas/ErrorResponse'
              examples:
                example:
                  value:
                    jsonrpc: '2.0'
                    error:
                      code: -32003
                      message: Gateway timeout
                    id: 1
      security:
        - ApiKeyQuery: []
components:
  securitySchemes:
    ApiKeyQuery:
      type: apiKey
      in: query
      name: api_key

````

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