airdropERC1155

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

Example

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

Parameters

The options for the "airdropERC1155" function.

Type

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

Returns

let returnType: PreparedTransaction<
any,
AbiFunction,
>;

A prepared transaction object.