Erc721Burnable.token() method
Burn NFTs
Example
// The token ID of the NFT you want to burn
const tokenId = 0;
await contract.nft.burn.token(tokenId);
Signature:
token(tokenId: BigNumberish): Promise<TransactionResult>;
Parameters
Parameter | Type | Description |
---|---|---|
tokenId | BigNumberish |
Returns:
Promise<TransactionResult>
Remarks
Burn NFTs held by the connected wallet