-
Notifications
You must be signed in to change notification settings - Fork 2
Burn NFTs
woodwardmatt edited this page May 15, 2022
·
1 revision
This transaction will burn either all serials for an NFT, or just the serials you specify.
The following will be required:
- You will need an operator account to pay for the burn transaction (account ID and private key) - update the .env file with this info
- You will need the token details of the token to burn (token ID and supply key) - update the .env file with this info
- This code runs under Node JS (and has the "npm start" script command already configured)
To use the Token Burn script:
- Update the package.json file (at line 12) to call the burn.js file:
"start": "node burn.js"
The following are worth noting:
- Update the "all_serials" variable to true, if you want to burn all tokens. Otherwise, leave this as false and specify the serials in the array provided.
- There is a YouTube video available for this over at: https://youtu.be/eviD-APyHJ8
The following materials were referenced / used in creating this code: