airdropNativeToken

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

Example

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