Airdrop ERC20 / ERC721 / ERC1155 tokens via push-based or claimable methods.
note: token-owner must approve their tokens to this airdrop contract, by calling approval related function on the token contract.
Airdrop ERC20 / ERC721 / ERC1155 tokens to a list of recipients.
The Airdrop
contract is suitable to use when you want to transfer ERC20 / ERC721 / ERC1155 tokens to a list of recipient addresses, and supports push based, claim based (allowlist), and signature based airdrops.
When push and signature based airdrops, you specify:
[
{
recipient: "0x123...",
tokenId: 1
},
{
recipient: "0xabc...",
tokenId: 2
}
]
For claim based airdrops, contract admin can set an allowlist of recipients by calling setMerkleRoot
function. Addresses in the allowlist can claim the allowlisted quantity/token-id by calling the claim functions.
The allowlist data should contain the following items in the given order:
On claiming an airdrop, a recipient specifies:
_tokenAddress | address |
_contents | tuple[] |