DynamicFreeMint

Dynamic Free Mint

Limit how many NFTs each wallet can claim for free.

  • Publish Date

    Nov 21, 2022

  • 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).

approve

nonpayable

Inputs

NameType
toaddress
tokenIduint256