airdropERC20

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

Example

import { airdropERC20 } from "thirdweb/extensions/airdrop";
const transaction = airdropERC20({
contract,
tokenAddress: ...,
contents: ...,
overrides: {
...
}
});
// Send the transaction
...
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.