DynamicFreeMint

Dynamic Free Mint

Limit how many NFTs each wallet can claim for free.

  • Publish Date

    Feb 01, 2023

  • Licenses

    Apache-2.0, MIT

With this contract, you can limit how many NFTs each wallet can claim for free.

You can upload your NFTs with the lazyMint function or, more easily, using the Batch Upload functionality on thirdweb.

You can update the pricePerToken at any time with setPricePerToken(_newPrice). (_newPrice in WEI)

For claiming, you can call the claim function with the quantity and the Native Token Value of the NFTs you have to pay.

Example:

  • You want to claim 4 NFTs.
  • mintForFree is set to 2.
  • pricePerToken is set to 0.1 ETH.
  • You call claim(4) with the Native Token Value of 0.2 ETH (or 2000000000000000000 WEI).

1.0.6 Release Notes

Fix a bug in which funds were not getting sent to the primary sale recipient.

OPERATOR_FILTER_REGISTRY

view

No inputs required