Erc1155Burnable.tokens() method
Burn a specified amount of a NFTs
Example
// The token ID to burn NFTs of
const tokenId = 0;
// The amount of the NFT you want to burn
const amount = 2;
const result = await contract.edition.burn.tokens(tokenId, amount);
Signature:
tokens(tokenId: BigNumberish, amount: BigNumberish): Promise<TransactionResult>;
Parameters
Parameter | Type | Description |
---|---|---|
tokenId | BigNumberish | the token Id to burn |
amount | BigNumberish | amount to burn |
Returns:
Promise<TransactionResult>
Remarks
Burn the specified NFTs from the connected wallet