Erc1155.burnBatch() 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.erc1155.burnBatch(tokenIds, amounts);
Signature:
burnBatch(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