This guide assumes that the NFT that is going to be burned was created by our NFT API and therefore uses functions that are available in our contracts.
In order to burn an NFT, we will need to execute a function on the NFT contract. In the example below we are calling the contract 0xe80f3baa739c18fd4ebf97716529a4b85be464dd and more specifically the function burn.
As input parameters we have
Token id (Token id that will get burned)
Contract address (Address of the contract that is managing the token)
Amount (Number of tokens to be burned, in case of an ERC1155 token)
Our contract also allows you to burn multiple tokens with one transaction. For we use the burnBatch function instead of the burn function. The burnBatch function used Arrays as an input parameter for id and amount.