Deejay's Scripts Documentation
  • Getting started
    • Introduction
    • Environment Set-up
    • Import and install our Scripts
    • Scripts overview
    • Setting .env
  • Scripts
    • â„šī¸Get Token Info
    • ✅Check Ownership
    • 🔗Associate / Dissociate Tokens
    • đŸĒ™Create Fungible Token
    • âš’ī¸Mint Additional Fungible Tokens
    • 🎆Burn Fungible Tokens
    • 🔨Create Non-Fungible Token
    • đŸ”ĨBurn Non-Fungible Tokens
    • â„ī¸Freeze Non-Fungible Tokens
    • 🤝NFT Transfer between two owned accounts
    • 🔑Update Private Key
    • 🔍Track Hedera NFTs
    • â˜ ī¸Token Graveyard
Powered by GitBook
On this page
  • Notes
  • Usage
  • Arguments
  1. Scripts

Token Graveyard

Interaction script to use the token graveyard. Works in MAIN & TEST environments to help unclog your wallet of failed mints where you can't grab the supply key.

Notes

There is a nominal cost to associate a new token (default: 5 hbar + association fee & you can check the live cost with the -cost option) of course if feeling generous you can override the payment to be higher with -pay option. You can of course deploy your own copy given the repo is freely available however it may cost you more to do that :D

Once associated you can send tokens to 0.0.1279390 [mainnet] or 0.0.48287676 [testnet] and they will be locked away forever.

Usage

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

MY_ACCOUNT_ID=0.12312
MY_PRIVATE_KEY=302e......
ENVIRONMENT=TEST

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

In your Node.js command prompt terminal, you can use

node tokenGraveyard.js [-associate 0.0.XXX | -cost] [-pmt Z]

Arguments

-associate 0.0.XXX - optional - to specify the token to associate for the graveyard

-cost - optional - query the minimum cost of the service

-pay Z - optional - override the default payment for usage

PreviousTrack Hedera NFTs

Last updated 2 years ago

â˜ ī¸