signature-based-minting
signature-based-minting copied to clipboard
Create a community-made NFT collection with restrictions that you specify using signature based minting in thirdweb's NFT Collection contract.
Signature Based Minting Example
This project demonstrates how you can create a "community-built" NFT collection, where each user mints and owns their own NFT based on specific conditions that we provide.
Installation
Install the template with thirdweb create
npx thirdweb create --template signature-based-minting
Set up
-
Create your own NFT Collection via the thirdweb dashboard.
-
Add your contract address to the
const/yourDetails.ts
file, in the formexport const NFT_COLLECTION_ADDRESS = "xxx";
.
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
andNEXT_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.