Counter and show nft Candy machine v3

59 Views Asked by At

Hello I’m using a repo of a Candy machine ui metaplex . And my knowledge do not permit me to add a counter for the remaining nft , and I wanted to show in a block the nft minted . Is there any documents here ? Thank you so much

I tried to use severals repositories to check into each code but it’s too hard to understand because each code fetch data differently.

1

There are 1 best solutions below

2
Mark Sackerberg On

It depends on which frameworks you are using. When using umi you can use fetchCandyMachine https://mpl-candy-machine-js-docs.vercel.app/functions/fetchCandyMachine.html

It returns a candy machine object with itemsLoaded (amount of NFTs in the cm) and itemsRedeemed (amount of NFTs minted)