metaplex-foundation / mpl-token-metadata

Program to attach additional data to Fungible or Non-Fungible tokens on Solana.
https://developers.metaplex.com/token-metadata
Other
124 stars 65 forks source link

How to specify the amount to be minted and total supply in "createAndMint(...)"? #115

Open tabatinga0xffff opened 5 months ago

tabatinga0xffff commented 5 months ago

Fungible tokens

The createAndMint(...) accepts the parameter amount. This is an amount of tokens to be minted immediately, right? How to specify the total supply?

kyritzb commented 4 months ago

I am wondering the same thing. Anyone have a fix for setting the max total supply of tokens?

MarkSackerberg commented 2 months ago

Hey, you cannot specify a max amount. This would be done through first minting all tokens you need and then revoking the mint authority.

you can do this using the Umi mpl-toolbox package with the setAuthority function: https://developers.metaplex.com/toolbox#spl-system