Skip to main content

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

ParameterTypeDescription
tokenIdsBigNumberish[]the tokenIds to burn
amountsBigNumberish[]amount of each token to burn

Returns:

Promise<TransactionResult>

Remarks

Burn the batch NFTs from the connected wallet