This example shows how you can use the Signature Drop Pre-Built Contract to utilize both the claim function to claim NFTs under the criteria of a claim condition, as well as the Signature-based minting feature to offer free NFT mints to specific users simultaneously.
We allow users who hold one of our Early Access NFTs to mint the NFT for free, by generating a mint signature from the admin wallet on the server-side. Whereas users who don't hold one of the NFTs do not qualify for the mint signature, but can still mint an NFT from the drop using the regular claim.
Install the template with thirdweb create
npx thirdweb create --template signature-drop
-
Create your own Signature Drop andEdition Drop via the thirdweb dashboard.
-
Add your contract addresses to the
consts.ts
file.
To run this project, you will need to add the following environment variables to your .env file:
NEXT_PUBLIC_TEMPLATE_CLIENT_ID=
TW_SECRET_KEY=
WALLET_PRIVATE_KEY=
- Generate your
TW_SECRET_KEY
andNEXT_PUBLIC_TEMPLATE_CLIENT_ID
via thirdweb's dashboard. - For
WALLET_PRIVATE_KEY
export your wallet private key from your wallet.
Install dependencies:
yarn
Start the server:
yarn start
Contributions and feedback are always welcome!
Please visit our open source page for more information.
For help, join the discord or visit our support page.