Friday, February 10, 2023

100/365: Token Burn Transaction

 Today I played around with the Token Burn Transaction on Hedera. This class allows you to burn tokens that you previously minted on Hedera, as long as you have the Supply Key. This is a unique and powerful tool with crypto currencies: they can be burned as well as minted. I want to create a wallet on Hedera that burns all of the tokens that are sent to it as a tax. One way to do this is a script which queries the Mirror Node to ask for the account balance, and then burns the full balance. This script can run on a server on some interval, cleaning out the wallet each time. I also see something in the docs called a Scheduled Transaction which might be more appropriate. 

No comments:

Post a Comment

190: Sablier

 The CodeHawks platform has an upcoming audit on the Sablier protocol, so I decided to read through the docs and familiarize myself with the...