This example demonstrates using thirdweb Engine to let users claim an NFT by scanning a QR code.
- Buyers scans a QR code they received with their physical product. For testing, you can use the QRs on the QRs page.
- Sign in with google/email on our website using embedded wallet.
- Click on the claim button which will call our backend API to mint the NFT.
The buyer receives the NFT without requiring wallet signatures or gas funds.
- Create a
.env.local
file from the template:cp .env.example .env.local
- Provide details of your project.
DATABASE_URL= NEXT_PUBLIC_TEMPLATE_CLIENT_ID= ENGINE_URL= THIRDWEB_ACCESS_TOKEN= BACKEND_WALLET_ADDRESS= NEXT_PUBLIC_NFT_CONTRACT_ADDRESS=
- Start the server with favorite package manager.
bun dev
- Support: Join the Discord
- Twitter: @thirdweb