Prepares a transaction to call the "airdropERC1155" function on the contract.
import { sendTransaction } from "thirdweb";import { airdropERC1155 } from "thirdweb/extensions/airdrop"; const transaction = airdropERC1155({ contract, tokenAddress: ..., contents: ..., overrides: { ... }}); // Send the transactionawait sendTransaction({ transaction, account });
function airdropERC1155( options: BaseTransactionOptions< | AirdropERC1155Params | { asyncParams: () => Promise<AirdropERC1155Params> } >,): PreparedTransaction<any, AbiFunction, PrepareTransactionOptions>;
The options for the "airdropERC1155" function.
let options: BaseTransactionOptions< | AirdropERC1155Params | { asyncParams: () => Promise<AirdropERC1155Params> }>;
let returnType: PreparedTransaction< any, AbiFunction, PrepareTransactionOptions>;
A prepared transaction object.