- token mints can not be closed atm ( circa 2024 jan 16 )
if you have the secret key, you can create mints locally using a script, but if you’re going to allow users to mint from a website etc you would have to build a |txn on the site, then send it onchain
if ur manually building the solana instruction to create a mint, dont forget to add an instruction to create and allocate the lamports and space before you initialize the mint
account’s space would be token.MINT_SIZE
lamports will be token’s min balance for rent exempt mint
-
need token account before you can mint new tokens ( issue new supply )
-
associated token account is almost always used over a token account
-
only the
mint authorityis allowed to mint new tokens -
minting tokens is the process of issuing new tokens into circulation
- you increase supply of the token mint
- deposit newly minted tokens into a token account
-
it’s common to update the
mint authorityto null after token mint -
this would set a maximum supply and make sure no one can ever mint more tokens in the future ( freezes the token mint )
there are token standards for the different types of nfts set by the token metadata program