mpl-token-metadata icon indicating copy to clipboard operation
mpl-token-metadata copied to clipboard

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

Open tabatinga0xffff opened this issue 1 year ago • 2 comments

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?

tabatinga0xffff avatar Apr 07 '24 17:04 tabatinga0xffff

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

kyritzb avatar May 31 '24 19:05 kyritzb

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

MarkSackerberg avatar Aug 01 '24 12:08 MarkSackerberg