airdropNativeToken

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

Example

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

Parameters

The options for the "airdropNativeToken" function.

Type

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

Returns

let returnType: PreparedTransaction<
any,
AbiFunction,
>;

A prepared transaction object.