Skip to main content

Erc1155Burnable.batchFrom() 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.edition.burn.batchFrom(
account,
tokenIds,
amounts,
);

Signature:

batchFrom(account: string, tokenIds: BigNumberish[], amounts: BigNumberish[]): Promise<TransactionResult>;

Parameters

ParameterTypeDescription
accountstringthe address to burn NFTs from
tokenIdsBigNumberish[]the tokenIds to burn
amountsBigNumberish[]amount of each token to burn

Returns:

Promise<TransactionResult>

Remarks

Burn the batch NFTs from the specified wallet