mpl-token-metadata
mpl-token-metadata copied to clipboard
How to specify the amount to be minted and total supply in "createAndMint(...)"?
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?
I am wondering the same thing. Anyone have a fix for setting the max total supply of tokens?
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