This project demonstrates how you can allow users to mint specific NFTs from a collection using signature mint.
Install the template with thirdweb create
npx thirdweb create --template mint-specific-nft
- Create an NFT Collection contract using the dashboard.
- Update the contract address in data/address.ts with the address of your collection.
- Update the NFTs in data/nfts.ts with the NFTs you want to mint.
To run this project, you will need to add the following environment variables to your .env file:
NEXT_PUBLIC_TEMPLATE_CLIENT_ID=paste-your-client-id-here
WALLET_PRIVATE_KEY=paste-your-wallet-private-key-here
TW_SECRET_KEY=paste-your-secret-key-here
- Generate your
TW_SECRET_KEY
andNEXT_PUBLIC_TEMPLATE_CLIENT_ID
via thirdweb's dashboard. - For
THIRDWEB_AUTH_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.