claimERC721

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

Example

import { claimERC721 } 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 = claimERC721({
contract,
tokenAddress,
recipient,
});
await sendTransaction({ claimTransaction, account });

Parameters

Returns

A promise that resolves to the transaction result.