đŸ”ĨBurn Non-Fungible Tokens

Simple script to allow the burning of NFTs [when you hold the supply key] N.B. serial must be in treasury account to burn else TREASURY_MUST_OWN_BURNED_NFT error

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 burnNFT.js -s XXX

Arguments

-s for the serial(s) of the NFT to burn (singular, comma seperated or - for range e.g. 2,5,10 or 1-10)

Last updated