Prepares a transaction to call the "airdropERC20" function on the contract.
import { sendTransaction } from "thirdweb";import { airdropERC20 } from "thirdweb/extensions/airdrop"; const transaction = airdropERC20({ contract, tokenAddress: ..., contents: ..., overrides: { ... }}); // Send the transactionawait sendTransaction({ transaction, account });
function airdropERC20( options: BaseTransactionOptions< | AirdropERC20Params | { asyncParams: () => Promise<AirdropERC20Params> } >,): PreparedTransaction<any, AbiFunction, PrepareTransactionOptions>;
The options for the "airdropERC20" function.
let options: BaseTransactionOptions< | AirdropERC20Params | { asyncParams: () => Promise<AirdropERC20Params> }>;
let returnType: PreparedTransaction< any, AbiFunction, PrepareTransactionOptions>;
A prepared transaction object.