onflow / flow-nft

The non-fungible token standard on the Flow blockchain
https://onflow.org
The Unlicense
465 stars 169 forks source link

Create a generic transaction to burn NFTs #236

Open joshuahannan opened 1 month ago

joshuahannan commented 1 month ago

Issue To Be Solved

Users need an easy way to burn NFTs from anywhere that doesn't require the specific app to implement burning functionality. A burner address like in Ethereum would be easiest, but that isn't really possible since you can't transfer to an uninitialized account.

Suggest A Solution

austinkline commented 1 month ago

You should be sending an nft to the Burner contract in case it has any callback functionality defined

Contract address and name isn't really enough, either. You'd need resource name as NFTs do not need to be called NFT. I would suggest taking in the resource type and id as inputs.

joshuahannan commented 1 month ago

Of course, the Burner contract would always be the final destination no matter what. Some projects want an intermediate place for NFTs to go before being burnt though in order to have tracking for which NFTs are burnt and in which groups, etc. Still figuring out what that might look like