Cover photo

AIRDROP TO HOLDERS

One of the most common but effective ways of marketing your NFT project is by airdropping NFTs to influencers and backers/community members of another NFT project (which may or may not be owned by you).

Airdropping has also shown application in projects which want to reward existing members with even more utility.

In this article, we will explore how to go about creating the two most common types of airdrops:

The on-chain direct mint and transfer drop The off-chain allowlist We will build the former using Solidity and standard OpenZeppelin ERC721 contracts. For the latter, we will employ digital signatures and the OpenZeppelin ECDSA library.

Finally, we will also write a script that leverages the [Alchemy NFT API][./] to get a list of all wallets that own an NFT of a particular collection.

Part 1: Direct Mint and Transfer In the direct mint and transfer model, the creator of the project mints the NFTs directly to a certain selection of wallets.

Step 1: Install Node and npm If you haven't already, install node and npm on your local machine.

Make sure that node is at least v14 or higher by typing the following in your terminal:

In this article, we will explore how to go about creating the two most common types of airdrops:

The on-chain direct mint and transfer drop The off-chain allowlist We will build the former using Solidity and standard OpenZeppelin ERC721 contracts. For the latter, we will employ digital signatures and the OpenZeppelin ECDSA library.

Finally, we will also write a script that leverages the [Alchemy NFT API][./] to get a list of all wallets that own an NFT of a particular collection.

Part 1: Direct Mint and Transfer In the direct mint and transfer model, the creator of the project mints the NFTs directly to a certain selection of wallets.

Step 1: Install Node and npm If you haven't already, install node and npm on your local machine.

Make sure that node is at least v14 or higher by typing the following in your terminal: