Erc1155Burnable.batch() method
Burn a batch of NFTs
Example
// The token IDs to burn NFTs of
const tokenIds = [0, 1];
// The amounts of each NFT you want to burn
const amounts = [2, 2];
const result = await contract.edition.burn.batch(tokenIds, amounts);
Signature:
batch(tokenIds: BigNumberish[], amounts: BigNumberish[]): Promise<TransactionResult>;
Parameters
Parameter | Type | Description |
---|---|---|
tokenIds | BigNumberish[] | the tokenIds to burn |
amounts | BigNumberish[] | amount of each token to burn |
Returns:
Promise<TransactionResult>
Remarks
Burn the batch NFTs from the connected wallet