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

Multi Transactions should be submitted in batch #2

Closed
yanCode opened this issue Feb 13, 2025 · 0 comments
Closed

Multi Transactions should be submitted in batch #2

yanCode opened this issue Feb 13, 2025 · 0 comments
Labels
enhancement New feature or request typescript

Comments

@yanCode
Copy link
Owner

yanCode commented Feb 13, 2025

I've seen a common misconception in typescript clients for many soloana projects

  • Please bear in mind, Solana supports batch processing transactions, in other words, as the long as these transcactions don't mutate the same account, they can be processed in batch, this is one important reason why solana is Faster.
  • But code in many clients only await the first transcation completes then starts next transcation.
  • As in the original code, it sequentially creates 3 mint, but in fact it doesn't have to wait for another.
  • In fact, it's a very good sample to sumbit them together using some javascript functions such as Process.all
  • This can shorten the overall executing time, even on local env, local-test-validator
@yanCode yanCode added enhancement New feature or request typescript labels Feb 13, 2025
yanCode added a commit that referenced this issue Feb 13, 2025
@yanCode yanCode closed this as completed Feb 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request typescript
Projects
None yet
Development

No branches or pull requests

1 participant