6

I need to put a check on Max whitelisted NFTs. Like each user can mint 10 NFTs. Any rust code snippet or reference would be helpful.

1 Answer 1

1

Candy Machine v3 introduced a feature called "Candy Guards", which are basically configuration settings that can be applied to a Candy Machine.

Two guards that may be relevant for your use case are the "Allow List" and "Mint Limit" guards.

https://docs.metaplex.com/programs/candy-machine/available-guards/allow-list

The Allow List guard validates the minting wallet against a predefined list of wallets. If the minting wallet is not part of this list, minting will fail.

https://docs.metaplex.com/programs/candy-machine/available-guards/mint-limit

The Mint Limit guard allows specifying a limit on the number of NFTs each wallet can mint.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.