简体   繁体   中英

Can I burn an NFT via smart contract using the Wallet address when an owner gives permission?

If I have a game whereby there are a number of NFT game pieces that have lost the game, can I burn them via the Smart contract?

For clarity; the NFT's are minted and in the wallets of the players. The players have a choice of continuing to play the game, however if their game piece dies, the NFT gets burned.

Options that I can see at the moment are; Player burns them themselves, reports that back and it gets checked via the ledger. Player 'Gifts' the NFT back as part of their choice to continue playing, then upon death, I burn the NFT.

Any suggestion on how to automate this within the smart contract as I don't want to rely on the player click the 'Burn' button on Opensea or have to go through each gifted NFT and burn manually.

Thanks.

This is interesting. What blockchain are you using? Needs to support kind of automation and the transfer function (to burn the token) needs to be called from either the owner of the token contract OR via a contract call to avoid fees. Then the contract call needs to be triggered via an external event.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM