Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
tabatinga0xffff opened this issue Apr 7, 2024 · 2 comments

Comments

@tabatinga0xffff
Copy link

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
Copy link

kyritzb commented May 31, 2024

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

@MarkSackerberg
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants