🎆Burn Fungible Tokens

Used to burn fungible tokens [when you hold the supply key] N.B. supply to burn must be in treasury account to burn.

Usage

Edit your .env file (rename .env.example to .env) with the following items:

MY_ACCOUNT_ID=0.0.123456
MY_PRIVATE_KEY=302e.........
ENVIRONMENT=TEST
SUPPLY_KEY=302e.........
TOKEN_ID=0.0.7897879

We recommend to remove the private key from the .env file after use. Extra precaution.

Then, in your Node.js command prompt terminal, you can use

node burnFT.js -amt XXX

Arguments

-amt XXX for the amount to burn net of decimals, for example to burn 1000 tokens node burnFT.js -amt 10000

Last updated