# Get all minted NFTs from a package and get all the addresses minted the NFTs

**URL:** <https://forums.sui.io/t/get-all-minted-nfts-from-a-package-and-get-all-the-addresses-minted-the-nfts/46376>\
**Category:** Technical Support\
**Created:** [November 12, 2024, 2:49pm UTC](https://forums.sui.io/t/get-all-minted-nfts-from-a-package-and-get-all-the-addresses-minted-the-nfts/46376 "2024-11-12T14:49:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tahlil](https://dub1.discourse-cdn.com/sui/user_avatar/forums.sui.io/tahlil/32/30688_2.png) [@tahlil](https://forums.sui.io/u/tahlil)\
**Post date:** [November 12, 2024, 2:49pm UTC](https://forums.sui.io/t/get-all-minted-nfts-from-a-package-and-get-all-the-addresses-minted-the-nfts/46376/1 "2024-11-12T14:49:38Z")

</div>

I am trying to get the NFTs minted from a PackageAddress with a script:

```auto
async function getMintedNFTAddresses() {
  let cursor: string | null = null;
  const uniqueOwners: Set<string> = new Set();
  let totalNFTs = 0;
  do {
    const result = await suiClient.queryTransactionBlocks({
      filter: { MoveFunction: { package: ${PACKAGE_ADDRESS}, module: "protocol", function: "mint" } },
      options: {
        showInput: true
      },
      cursor: cursor,
      limit: 50, // Adjust limit for performance, e.g., 50, 100, etc.
    }) as any;

    totalNFTs += result.data.length 
   
    // Iterate through each transaction block
    for (const tx of result.data) {
      if (tx.transaction && tx.transaction.data.sender) {
        
        uniqueOwners.add(tx.transaction.data.sender);
      }
    }
    if (result.data.length === 0) {
      break;
    }

    cursor = result.nextCursor;

  } while (cursor); // Continue until no more pages left

  return Array.from(uniqueOwners);
}

```

I know that there is 1186 NFTs but I am being stopped 1013 NFT when cursor value at `HcTGPiZ9AKzJ2i6uyuKRNqTM2muxheu8bVQWFLW8Uutp` how to I get details on all the NFTs?
