claimERC1155

Claim airdrop of ERC1155 tokens for allowlisted addresses. (Pull based airdrop)

Example

import { claimERC1155 } from "thirdweb/extensions/airdrop";
import { sendTransaction } from "thirdweb";
const tokenAddress = "0x..."; // Address of airdropped tokens to claim
const recipient = "0x..."; // Address of the allowlisted recipient
const claimTransaction = claimERC1155({
contract,
tokenAddress,
recipient,
});
await sendTransaction({ claimTransaction, account });

Parameters

Returns

A promise that resolves to the transaction result.