Sui.

Post

Share your knowledge.

Opiiii.
Jul 14, 2025
Expert Q&A

What’s the best way to manage gas costs?

Gas adds up fast when batching actions. Any tips for estimating or reducing gas usage when working with Sui?

  • Sui
  • SDKs and Developer Tools
  • Transaction Processing
  • Security Protocols
0
2
Share
Comments
.

Answers

2
24p30p.
Jul 14 2025, 13:05

To manage gas costs effectively on Sui, you need to focus on minimizing the number of mutated objects and being selective with what you include in batched transactions. Each object you read or mutate increases gas usage, especially shared or dynamic fields. When batching actions, avoid including unnecessary reads or complex logic that could trigger expensive computation. You can estimate gas usage using the sui client dry-run command before sending a transaction, which helps avoid surprises. Also, design your Move modules with gas in mind — reduce calls to external modules, avoid excessive storage writes, and use immutable reads where possible.

If you're creating a frontend app, try grouping user actions smartly — for instance, only batch transactions if it benefits the user in one click rather than doing multiple operations that could be separated. Finally, keep an eye on network congestion. Sui’s gas pricing can vary depending on load, so time your interactions or build in fallback strategies.

🔗 Learn more about gas estimation on Sui

0
Best Answer
Comments
.
Meaning.Sui.
Jul 14 2025, 14:49

To save gas on Sui, the key is keeping things light. Every object you read or change (especially shared ones or dynamic fields) adds to the gas cost. So try to mutate fewer objects and only batch stuff if it truly helps the user

0
Comments
.

Do you know the answer?

Please log in and share it.

Sui is a Layer 1 protocol blockchain designed as the first internet-scale programmable blockchain platform.

420Posts611Answers
Sui.X.Peera.

Earn Your Share of 1000 Sui

Gain Reputation Points & Get Rewards for Helping the Sui Community Grow.

Reward CampaignJuly