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

Ability to mint multiple tokens at once? #3

Open
edwardysun opened this issue Feb 14, 2022 · 4 comments
Open

Ability to mint multiple tokens at once? #3

edwardysun opened this issue Feb 14, 2022 · 4 comments

Comments

@edwardysun
Copy link

Just curious, would it be possible to add a quantity argument to mintCandyMachineToken and be able to batch mint more than one token at a time?

Thanks,
Edward

@zkhalapyan
Copy link
Contributor

Can you tell me more about the use case?

@edwardysun
Copy link
Author

For context, our use case is trying to make a backend that mints and then transfers an NFT or multiple (up to 5) NFTs to a specified wallet address. We're supporting a fiat flow with credit card purchases and this backend is executed when the credit card transaction is complete.

This is more of a nice-to-have for us, not a must have. Right now, I just run a loop up to the quantity needed, but ideally there could be a batch (up to 5) mint. Thanks for this library you've made. It's been really helpful so far!

@zkhalapyan
Copy link
Contributor

Ah, I see. I think the easy way of doing this would be wrap the wonka call in a Promise.all(..), but if atomicity is important, much better to do through Rust. Another approach would be just to batch the transactions at a lower level. I wonder if @kunalmodi has any thoughts.

Would you be up for a quick chat? We've quietly been building NFT infra that should save you a lot of extra work. We have only opened it up to our close partners, but seems like it might be helpful to you as well.

Here is our calendly, but happy work around your schedule. Also, seems like you worked at Nextdoor. Have you met Aaron Sarnoff? He used to be our manager actually! 🙂

@edwardysun
Copy link
Author

Scheduled time on your calendar. Looking forward to chatting!

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

2 participants