Airdrop NFTs
Engine makes it effortless for any developer to airdrop NFTs at scale. You sponsor the gas so your users only need a wallet address!
![Airdrop overview](/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fairdrop-overview.8ce60625.png&w=3840&q=75)
- An Engine instance
- A backend wallet with currency to pay for gas
- A deployed NFT contract that can be claimed by the backend wallet
- A client ID and secret key from your Team > Project > Settings page.
Use ConnectButton
component to prompt the user for their wallet. The Claim button calls POST /api/claim
.
Replace <thirdweb_client_id>
.
POST /api/claim
calls Engine to mint an NFT to the user's wallet.
Hereβs what the user flow looks like.
The app prompts the user to connect their wallet.
![Initial page load](/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fairdrop-nfts-1.8be1261a.png&w=3840&q=75)
![The app prompts the user to connect their wallet](/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fairdrop-nfts-2.e66bac14.png&w=3840&q=75)
A user presses claim.
![A user presses claim](/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fairdrop-nfts-3.ad5111e9.png&w=3840&q=75)
They'll receive the NFT in their wallet shortly!
![They'll receive the NFT in their wallet shortly](/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fairdrop-nfts-4.20a552ec.png&w=3840&q=75)
The code above is simplified for readability. View the full source code β