Skip to main content

IAirdropERC20Claimable

Thirdweb's Airdrop contracts provide a lightweight and easy to use mechanism to drop tokens. AirdropERC20Claimable contract is an airdrop contract for ERC20 tokens. It follows a pull mechanism for transfer of tokens, where allowlisted recipients can claim tokens from the contract.

Methods

claim

function claim(address receiver, uint256 quantity, bytes32[] proofs, uint256 proofMaxQuantityForWallet) external nonpayable

Lets an account claim a given quantity of NFTs.

Parameters

NameTypeDescription
receiveraddressThe receiver of the NFTs to claim.
quantityuint256The quantity of NFTs to claim.
proofsbytes32[]The proof of the claimer's inclusion in the merkle root allowlist of the claim conditions that apply.
proofMaxQuantityForWalletuint256The maximum number of NFTs an address included in an allowlist can claim.

Events

TokensClaimed

event TokensClaimed(address indexed claimer, address indexed receiver, uint256 quantityClaimed)

Emitted when tokens are claimed.

Parameters

NameTypeDescription
claimer indexedaddressundefined
receiver indexedaddressundefined
quantityClaimeduint256undefined