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

# getNftEditions

> List the printed editions of a Solana master edition NFT, with supply and max supply, using DAS getNftEditions on OrbitFlare.

## Overview

A master edition NFT can print numbered copies, each with its own mint. `getNftEditions` lists those prints for a master edition mint, along with the master edition's current supply and maximum supply.

## Parameters

<ResponseField name="mint" type="string" required>
  The master edition NFT's mint (base-58). Also accepted as `mintAddress`.
</ResponseField>

<ResponseField name="page" type="number">
  Page number, starting at 1. See [Pagination](/das-api/pagination).
</ResponseField>

<ResponseField name="limit" type="number">
  Results per page. Maximum and default 1,000.
</ResponseField>

<ResponseField name="cursor" type="string">
  Cursor from a previous response.
</ResponseField>

<ResponseField name="before" type="string">
  Return editions before this one.
</ResponseField>

<ResponseField name="after" type="string">
  Return editions after this one.
</ResponseField>

## Response

<ResponseField name="result" type="object">
  <Expandable title="result fields">
    <ResponseField name="master_edition_address" type="string">
      The master edition account address.
    </ResponseField>

    <ResponseField name="supply" type="number">
      Number of editions printed so far.
    </ResponseField>

    <ResponseField name="max_supply" type="number | null">
      Maximum number of editions, or `null` if unlimited.
    </ResponseField>

    <ResponseField name="total" type="number">
      Number of editions in this page.
    </ResponseField>

    <ResponseField name="limit" type="number">
      Page size used.
    </ResponseField>

    <ResponseField name="page" type="number">
      Page number, when paging by page.
    </ResponseField>

    <ResponseField name="editions" type="array">
      <Expandable title="edition fields">
        <ResponseField name="mint" type="string">
          The print's mint address.
        </ResponseField>

        <ResponseField name="edition_address" type="string">
          The print's edition account address.
        </ResponseField>

        <ResponseField name="edition" type="number">
          The edition number.
        </ResponseField>
      </Expandable>
    </ResponseField>
  </Expandable>
</ResponseField>

## Code Examples

### Request

```bash theme={"theme":{"light":"github-light","dark":"github-dark-default"}}
curl https://fra.rpc.orbitflare.com?api_key=YOUR-API-KEY -X POST -H "Content-Type: application/json" -d '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "getNftEditions",
  "params": {
    "mint": "MASTER_EDITION_MINT",
    "page": 1,
    "limit": 100
  }
}'
```

### Response shape

```json theme={"theme":{"light":"github-light","dark":"github-dark-default"}}
{
  "jsonrpc": "2.0",
  "result": {
    "total": 2,
    "limit": 100,
    "page": 1,
    "master_edition_address": "MASTER_EDITION_ACCOUNT",
    "supply": 2,
    "max_supply": 10,
    "editions": [
      { "mint": "PRINT_MINT_1", "edition_address": "PRINT_EDITION_ACCOUNT_1", "edition": 1 },
      { "mint": "PRINT_MINT_2", "edition_address": "PRINT_EDITION_ACCOUNT_2", "edition": 2 }
    ]
  },
  "id": 1
}
```

### TypeScript

```typescript theme={"theme":{"light":"github-light","dark":"github-dark-default"}}
const RPC_URL = 'https://fra.rpc.orbitflare.com?api_key=YOUR-API-KEY';

async function getNftEditions(mint: string, page = 1) {
  const response = await fetch(RPC_URL, {
    method: 'POST',
    headers: { 'Content-Type': 'application/json' },
    body: JSON.stringify({
      jsonrpc: '2.0',
      id: 1,
      method: 'getNftEditions',
      params: { mint, page, limit: 1000 },
    }),
  });
  const { result, error } = await response.json();
  if (error) throw new Error(error.message);

  console.log(`${result.supply} of ${result.max_supply ?? 'unlimited'} printed`);
  return result.editions;
}
```

## Common Errors

| Code | Message | Solution |
| - | - | - |
| -32602 | Pubkey Validation Err: ... is invalid | Pass a valid base-58 mint |
| -32602 | Pagination Error. Limit should not be greater than 1000. | Use a `limit` of 1,000 or less |
| -32000 | Edition data not found | The mint is not a master edition, or it has not been indexed |


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