burnBatch

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

Example

import { sendTransaction } from "thirdweb";
import { burnBatch } from "thirdweb/extensions/erc1155";
const transaction = burnBatch({
contract,
account: ...,
ids: ...,
values: ...,
overrides: {
...
}
});
// Send the transaction
await sendTransaction({ transaction, account });
function burnBatch(
BurnBatchParams | { asyncParams: () => Promise<BurnBatchParams> }
>,

Parameters

The options for the "burnBatch" function.

Type

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

Returns

let returnType: PreparedTransaction<
any,
AbiFunction,
>;

A prepared transaction object.