Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thirdweb-example/signature-based-minting
Create a community-made NFT collection with restrictions that you specify using signature based minting in thirdweb's NFT Collection contract.
https://github.com/thirdweb-example/signature-based-minting
nextjs nft-collection signature-based-minting typescript
Last synced: 2 months ago
JSON representation
Create a community-made NFT collection with restrictions that you specify using signature based minting in thirdweb's NFT Collection contract.
- Host: GitHub
- URL: https://github.com/thirdweb-example/signature-based-minting
- Owner: thirdweb-example
- License: apache-2.0
- Created: 2022-04-07T20:17:43.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-09-14T16:14:41.000Z (over 1 year ago)
- Last Synced: 2024-04-22T14:44:15.248Z (9 months ago)
- Topics: nextjs, nft-collection, signature-based-minting, typescript
- Language: TypeScript
- Homepage: https://signature-based-minting.thirdweb-example.com
- Size: 215 KB
- Stars: 46
- Watchers: 3
- Forks: 32
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# 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](https://portal.thirdweb.com/cli/create)
```bash
npx thirdweb create --template signature-based-minting
```## Set up
- Create your own [NFT Collection](thirdweb.com/thirdweb.eth/tokenerc721) via the [thirdweb dashboard](https://thirdweb.com).
- Add your contract address to the [`const/yourDetails.ts`](/const/yourDetails.ts) file, in the form `export const NFT_COLLECTION_ADDRESS = "xxx";`.
### Environment Variables
To run this project, you will need to add the following environment variables to your .env file:
```bash
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](https://thirdweb.com/create-api-key).
- For `WALLET_PRIVATE_KEY` export your wallet private key from your wallet.### Run Locally
Install dependencies:
```bash
yarn
```Start the server:
```bash
yarn start
```## Additional Resources
- [Documentation](https://portal.thirdweb.com)
- [Templates](https://thirdweb.com/templates)
- [Video Tutorials](https://youtube.com/thirdweb_)
- [Blog](https://blog.thirdweb.com)## Contributing
Contributions and [feedback](https://feedback.thirdweb.com) are always welcome!
Please visit our [open source page](https://thirdweb.com/open-source) for more information.
## Need help?
For help, join the [discord](https://discord.gg/thirdweb) or visit our [support page](https://support.thirdweb.com).