🪙Create Fungible Token

Used to create a new fungible token.

Usage

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

MY_ACCOUNT_ID=0.0.123456
MY_PRIVATE_KEY=302e.........
###Fungible Token Creation### 
TOKEN_NAME=Airdrop Test FT 
TOKEN_SYMBOL=BUSY
TOKEN_DECIMALS=6 
TOKEN_INITALSUPPLY=100000

Initial supply is net of the decimal e.g. above supply created is 0.1 BUSY

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 createFungibleToken.mjs [-mainnet] [-adminkey] [-freezekey] [-pausekey] [-maxsupply XXX]

Arguments

-mainnet to deploy on mainnet - optional - defaults to testnet unless specified

-adminkey optional - add an admin key

-freezekey optional - add a freeze key

-pausekey optional - add a pause key

-maxsupply optional - net of the decimal - if used please provide an integer, if omitted then infinite supply assumed

Last updated