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 });
function claimERC721(

Parameters

The transaction options.

Type

Returns

let returnType: PreparedTransaction<
any,
AbiFunction,
>;

A promise that resolves to the transaction result.