airdropERC20WithSignature

Airdrops ERC20 tokens to a list of recipients, with the request signed by admin

Example

import { airdropERC20WithSignature, generateAirdropSignatureERC20 } from "thirdweb/extensions/airdrop";
import { sendTransaction } from "thirdweb";
const { req, signature } = await generateAirdropSignatureERC20(...)
const transaction = airdropERC20WithSignature({
contract,
req,
signature,
});
await sendTransaction({ transaction, account });

Parameters

Returns

A promise that resolves to the transaction result.