Docs

claimERC20

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

Example

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

Parameters

Returns

A promise that resolves to the transaction result.