My question is similar to this one Link. I don't see any satisfactory answer on that question?. Is there a method to fetch all the nfts minted by a particular smart contract?
1 Answer
You can have the NFTs (mints) as a PDA. then use getProgramAccounts to get the PDAs that have a data size of 82 bytes
(mint
size)
This will return all mint
PDAs derived from your program
.