Skip to main content

IAirdropERC1155Claimable

Thirdweb's Airdrop contracts provide a lightweight and easy to use mechanism to drop tokens. AirdropERC1155Claimable contract is an airdrop contract for ERC1155 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, uint256 tokenId, bytes32[] proofs, uint256 proofMaxQuantityForWallet) external nonpayable

Lets an account claim a given quantity of ERC1155 tokens.

Parameters

NameTypeDescription
receiveraddressThe receiver of the tokens to claim.
quantityuint256The quantity of tokens to claim.
tokenIduint256Token Id 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 tokens an address included in an allowlist can claim.

Events

TokensClaimed

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

Emitted when tokens are claimed.

Parameters

NameTypeDescription
claimer indexedaddressundefined
receiver indexedaddressundefined
tokenId indexeduint256undefined
quantityClaimeduint256undefined