Airdrop Free-To-Own NFTs For Your Web3 Game
![Airdrop Free-To-Own NFTs For Your Web3 Game](/content/images/size/w2000/2023/03/Airdrop--Free-To-Own-NFTs-FOR-a-game-2.png)
In this guide, we'll show you how to deploy an ERC1155 NFT Collection using our prebuilt Edition smart contract and airdrop NFTs to a list of wallet addresses.
By the end, you'll:
- Deploy an NFT smart contract and mint your NFTs
- Create a "snapshot" of wallet addresses to airdrop NFTs to them
- Airdrop "Access Key" NFTs that unlock access to your Game!
Let's get started.
Create An ERC1155 NFT Collection
Navigate to the thirdweb dashboard and connect your wallet
![Connect wallet to thirdweb dashboard](https://blog.thirdweb.com/content/images/2023/03/image-90.png)
Click on "Deploy new contract" in order to create your Contract
![image of thirdweb dashboard on deploy contracts module to create NFT with "deploy new contract" button](https://blog.thirdweb.com/content/images/2023/03/SCR-20230305-94p.png)
You will be taken to our Explore page — where you can browse smart contracts built by the top protocols in web3 and deploy them in just a few clicks!
Note: You can also use the thirdweb CLI to set up a smart contract environment by running the below command from your terminal:
npx thirdweb create contract
This will take you through an easy-to-follow flow of steps for you to create your contract. Learn more about this in our CLI guide.
Otherwise, let's get back to Explore:
![thirdweb explore page](https://blog.thirdweb.com/content/images/2023/03/SCR-20230304-rle-2.png)
Here, select your smart contract of choice. For this guide, we're going to use the Edition (ERC1155) contract to create our NFT collection:
![thirdweb's Edition Contract](https://blog.thirdweb.com/content/images/2023/03/image-91.png)
Populate the metadata of the smart contract itself, such as the image
, name
, symbol
, description
, royalties, etc. Fill it out as you choose, here's mine:
![Configure contract metadata](https://blog.thirdweb.com/content/images/2023/03/cL4ccO6Rr.png)
Finally, select the network you want to deploy your smart contract to and click Deploy Now
:
![Click Deploy Now](https://blog.thirdweb.com/content/images/2023/03/oGG1x_7_z.png)
🥳 Your smart contract is deployed! Head over to the NFTs
tab and click Mint
:
![Click Mint on NFTs Tab](https://blog.thirdweb.com/content/images/2023/03/jmF3SvznU.png)
Configure the metadata of the NFT you're creating and set the initial supply
to the amount you're going to airdrop. When you're ready, click Mint NFT
:
![Click Mint NFT Button](https://blog.thirdweb.com/content/images/2023/03/ydqSjlnJt.png)
Our NFTs are ready to be airdropped! 🎉
Airdropping NFTs To Users
To airdrop users these NFTs, you need a .csv
file, containing an address
column and a quantity
column (how many NFTs this address should be airdropped).
Your CSV file should look like this:
address,quantity
0xb371d1C5629C70ACd726B20a045D197c256E1054,3
0x344eE943b6961e2B6E349c0546802baC037a4f01,1
You can use our templates below to generate a snapshot of users, or upload your own:
- Holders of an NFT Collection deployed on thirdweb
- Holders of an NFT Collection not deployed on thirdweb
From the dashboard, upload your .csv
file by first clicking on your NFT:
![Click on your NFT](https://blog.thirdweb.com/content/images/2023/03/bSz2OsDsu.png)
From the airdrop
tab, upload your .csv
file and click Next
:
![Upload your csv file](https://blog.thirdweb.com/content/images/2023/03/VrSyT5WMD.png)
Finally, click Airdrop
to transfer the NFTs all at once: ✈️📦
![Click airdrop button](https://blog.thirdweb.com/content/images/2023/03/USl_DDcNN.png)
To confirm everything worked as expected, we can check the balance of one of our airdrop receivers in the Explorer
tab, by running the balanceOf
function (id is the NFT token ID):
![Confirm result in explorer tab](https://blog.thirdweb.com/content/images/2023/03/qMCCvN7A2.png)
Wrapping Up
That's it! You've successfully minted and airdropped NFTs to your community!
Got questions? Jump into our Discord to chat with our team directly.