airdropERC20

Prepares a transaction to call the "airdropERC20" function on the contract.

Example

import { sendTransaction } from "thirdweb";
import { airdropERC20 } from "thirdweb/extensions/airdrop";
const transaction = airdropERC20({
contract,
tokenAddress: ...,
contents: ...,
overrides: {
...
}
});
// Send the transaction
await sendTransaction({ transaction, account });
function airdropERC20(
| { asyncParams: () => Promise<AirdropERC20Params> }
>,

Parameters

The options for the "airdropERC20" function.

Type

| { asyncParams: () => Promise<AirdropERC20Params> }
>;

Returns

let returnType: PreparedTransaction<
any,
AbiFunction,
>;

A prepared transaction object.