Skip to content

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.

Requirements

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)

Getting Started

To use the Token Burn script:

  • Update the package.json file (at line 12) to call the burn.js file: "start": "node burn.js"

Notes

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

References:

The following materials were referenced / used in creating this code:

Clone this wiki locally