Skip to content

Use the signature drop pre-built contract to claim NFTs under a claim phase as well as claim using signature-based minting!

License

Notifications You must be signed in to change notification settings

DeltaVThrust-NFT/signature-drop-nft

 
 

Repository files navigation

Signature Drop

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.

demo

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.

Installation

Install the template with thirdweb create

npx thirdweb create --template signature-drop

Set up

Environment Variables

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 and NEXT_PUBLIC_TEMPLATE_CLIENT_ID via thirdweb's dashboard.
  • For WALLET_PRIVATE_KEY export your wallet private key from your wallet.

Run Locally

Install dependencies:

yarn

Start the server:

yarn start

Additional Resources

Contributing

Contributions and feedback are always welcome!

Please visit our open source page for more information.

Need help?

For help, join the discord or visit our support page.

About

Use the signature drop pre-built contract to claim NFTs under a claim phase as well as claim using signature-based minting!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 70.8%
  • CSS 28.1%
  • JavaScript 1.1%