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