Erc1155.burnBatchFrom() method
Burn a batch of NFTs
Example
// The address of the wallet to burn NFTS from
const account = "0x...";
// 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.burnBatchFrom(account, tokenIds, amounts);
Signature:
burnBatchFrom(account: string, tokenIds: BigNumberish[], amounts: BigNumberish[]): Promise<TransactionResult>;
Parameters
Parameter | Type | Description |
---|---|---|
account | string | the address to burn NFTs from |
tokenIds | BigNumberish[] | the tokenIds to burn |
amounts | BigNumberish[] | amount of each token to burn |
Returns:
Promise<TransactionResult>
Remarks
Burn the batch NFTs from the specified wallet