# getNftEditions_v2

> For the complete documentation index, see [llms.txt](/docs/llms.txt).

POST https://solana-mainnet.g.alchemy.com/v2/{apiKey}

Returns all editions and prints of a Solana master edition NFT, including edition numbers and metadata, with pagination support.


Reference: https://www.alchemy.com/docs/reference/alchemy-das-apis-for-solana-v2/solana-das-api-v2-endpoints/get-nft-editions-v-2

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| mint | string | Yes | The mint address of the master edition NFT to retrieve all editions for. |
| page | integer | No | The page of results to return (1-based). |
| limit | integer | No | The maximum number of NFT editions to return per page. |

## Result

**NFT edition list** (object): A paginated list of NFT editions minted from the specified master edition.

## Example

### Request

```json
{
  "jsonrpc": "2.0",
  "method": "getNftEditions_v2",
  "params": [
    "Ey2Qb8kLctbchQsMnhZs5DjY32To2QtPuXNwWvk4NosL",
    1,
    10
  ],
  "id": 1
}
```

### Response

```json
{
  "jsonrpc": "2.0",
  "result": {
    "last_indexed_slot": 365750752,
    "total": 61,
    "limit": 10,
    "page": 1,
    "master_edition_address": "8SHfqzJYABeGfiG1apwiEYt6TvfGQiL1pdwEjvTKsyiZ",
    "supply": 61,
    "max_supply": 69,
    "editions": [
      {
        "mint": "GJvFDcBWf6aDncd1TBzx2ou1rgLFYaMBdbYLBa9oTAEw",
        "edition_address": "3PfEsMd1Mv5wUR9K4jhZa5o2gQ8CZ7HHrDf5Q9zGF7bV",
        "edition": 1
      },
      {
        "mint": "5MnBpuF5Br4rL9jm9Aji4RmLPTHqTGYuxmDydCkgAtay",
        "edition_address": "6HrLQxrKcxwvKt7RhQ9jm4M2u1UyC5G2Kw7DhKzUvJmp",
        "edition": 2
      },
      {
        "mint": "4RGpV1SewJnAqM1BeF3vB8QeqQE31zHTKzMdyeMkNAv6",
        "edition_address": "BbvA1oMv4nzHQxRUAe3xNbUxfB3jgy9zZ21fj6C5vApV",
        "edition": 3
      }
    ]
  },
  "id": 1
}
```

## Code Examples

### cURL

```bash
curl --request POST \
  --url https://solana-mainnet.g.alchemy.com/v2/docs-demo \
  --header 'Content-Type: application/json' \
  --data '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "getNftEditions_v2",
  "params": [
    "Ey2Qb8kLctbchQsMnhZs5DjY32To2QtPuXNwWvk4NosL",
    1,
    10
  ]
}'
```

### JavaScript

```javascript
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/json'},
  body: JSON.stringify({
    jsonrpc: '2.0',
    id: 1,
    method: 'getNftEditions_v2',
    params: ['Ey2Qb8kLctbchQsMnhZs5DjY32To2QtPuXNwWvk4NosL', 1, 10]
  })
};

fetch('https://solana-mainnet.g.alchemy.com/v2/docs-demo', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://solana-mainnet.g.alchemy.com/v2/docs-demo"

payload = {
    "jsonrpc": "2.0",
    "id": 1,
    "method": "getNftEditions_v2",
    "params": ["Ey2Qb8kLctbchQsMnhZs5DjY32To2QtPuXNwWvk4NosL", 1, 10]
}
headers = {"Content-Type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
```

### Go

```go
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://solana-mainnet.g.alchemy.com/v2/docs-demo"

	payload := strings.NewReader("{\n  \"jsonrpc\": \"2.0\",\n  \"id\": 1,\n  \"method\": \"getNftEditions_v2\",\n  \"params\": [\n    \"Ey2Qb8kLctbchQsMnhZs5DjY32To2QtPuXNwWvk4NosL\",\n    1,\n    10\n  ]\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(string(body))

}
```

### Java

```java
HttpResponse<String> response = Unirest.post("https://solana-mainnet.g.alchemy.com/v2/docs-demo")
  .header("Content-Type", "application/json")
  .body("{\n  \"jsonrpc\": \"2.0\",\n  \"id\": 1,\n  \"method\": \"getNftEditions_v2\",\n  \"params\": [\n    \"Ey2Qb8kLctbchQsMnhZs5DjY32To2QtPuXNwWvk4NosL\",\n    1,\n    10\n  ]\n}")
  .asString();
```

### C#

```csharp
using RestSharp;


var options = new RestClientOptions("https://solana-mainnet.g.alchemy.com/v2/docs-demo");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddJsonBody("{\n  \"jsonrpc\": \"2.0\",\n  \"id\": 1,\n  \"method\": \"getNftEditions_v2\",\n  \"params\": [\n    \"Ey2Qb8kLctbchQsMnhZs5DjY32To2QtPuXNwWvk4NosL\",\n    1,\n    10\n  ]\n}", false);
var response = await client.PostAsync(request);

Console.WriteLine("{0}", response.Content);

```


## OpenRPC Method Specification

```yaml
name: getNftEditions_v2
description: |
  Returns all editions and prints of a Solana master edition NFT, including edition numbers and metadata, with pagination support.
x-compute-units: 160
x-rate-limit-cus: 200
paramStructure: by-name
params:
  - name: mint
    required: true
    description: The mint address of the master edition NFT to retrieve all editions for.
    schema:
      type: string
  - name: page
    required: false
    description: The page of results to return (1-based).
    schema:
      type: integer
  - name: limit
    required: false
    description: The maximum number of NFT editions to return per page.
    schema:
      type: integer
examples:
  - name: getNftEditions_v2 example
    params:
      - name: mint
        value: Ey2Qb8kLctbchQsMnhZs5DjY32To2QtPuXNwWvk4NosL
      - name: page
        value: 1
      - name: limit
        value: 10
    result:
      name: NFT edition list
      value:
        last_indexed_slot: 365750752
        total: 61
        limit: 10
        page: 1
        master_edition_address: 8SHfqzJYABeGfiG1apwiEYt6TvfGQiL1pdwEjvTKsyiZ
        supply: 61
        max_supply: 69
        editions:
          - mint: GJvFDcBWf6aDncd1TBzx2ou1rgLFYaMBdbYLBa9oTAEw
            edition_address: 3PfEsMd1Mv5wUR9K4jhZa5o2gQ8CZ7HHrDf5Q9zGF7bV
            edition: 1
          - mint: 5MnBpuF5Br4rL9jm9Aji4RmLPTHqTGYuxmDydCkgAtay
            edition_address: 6HrLQxrKcxwvKt7RhQ9jm4M2u1UyC5G2Kw7DhKzUvJmp
            edition: 2
          - mint: 4RGpV1SewJnAqM1BeF3vB8QeqQE31zHTKzMdyeMkNAv6
            edition_address: BbvA1oMv4nzHQxRUAe3xNbUxfB3jgy9zZ21fj6C5vApV
            edition: 3
result:
  name: NFT edition list
  description: A paginated list of NFT editions minted from the specified master edition.
  schema:
    title: NFT edition list
    type: object
    description: A paginated list of editions minted from a master edition NFT.
    properties:
      last_indexed_slot:
        type: integer
        description: All on-chain data up to and including this slot is guaranteed to have been indexed.
      total:
        type: integer
        description: The total number of limited-edition NFTs minted from this master edition.
      limit:
        type: integer
        description: The maximum number of NFT editions requested.
      page:
        type: integer
        description: The current page of results.
      master_edition_address:
        type: string
        description: The address of the master edition NFT that controls the print editions.
      supply:
        type: integer
        description: Current supply of minted NFT editions from this master edition.
      max_supply:
        type: integer
        description: Maximum possible supply of NFT editions that can be minted from this master.
      editions:
        type: array
        description: An array of individual NFT editions minted from this master edition.
        items:
          title: NFT edition
          type: object
          description: An individual NFT edition minted from a master edition.
          properties:
            mint:
              type: string
              description: The unique mint address of this individual NFT edition.
            edition_address:
              type: string
              description: The blockchain address of this edition account.
            edition:
              type: integer
              description: The sequential edition number of this NFT in the print series.
```
