🎉 Gate xStocks Trading is Now Live! Spot, Futures, and Alpha Zone – All Open!
📝 Share your trading experience or screenshots on Gate Square to unlock $1,000 rewards!
🎁 5 top Square creators * $100 Futures Voucher
🎉 Share your post on X – Top 10 posts by views * extra $50
How to Participate:
1️⃣ Follow Gate_Square
2️⃣ Make an original post (at least 20 words) with #Gate xStocks Trading Share#
3️⃣ If you share on Twitter, submit post link here: https://www.gate.com/questionnaire/6854
Note: You may submit the form multiple times. More posts, higher chances to win!
📅 July 3, 7:00 – July 9,
Hedera Urges Dynamic Gas Estimation To Prevent DApp Failures
HomeNews* Hardcoded gas limits in smart contracts can cause transaction failures as network conditions or contract logic change.
Best practices for developers include first calling estimation functions, then adding an extra 20–25% as a safety buffer to cover possible changes. Technical instructions recommend retrying failed transactions with an increased limit if initial attempts run out of gas, and monitoring gas trends in production to improve estimates over time. For Hedera, unused gas up to 20% is refunded, encouraging accurate predictions and helping avoid excess costs.
Guidance from Hedera also explains that their network is EVM-compatible and open source, so developers can use familiar EVM tools. For those not building directly with smart contracts, Hedera provides SDKs in JavaScript, Java, Go, Rust, and more for easier integration with web3 elements.
Developers can review contract performance and gas metrics through the Contract Results section on HashScan or reference contractCallResult.gasUsed in the SDK. Additional resources include guidance on using HAPI (Hedera API), with endpoints for the Mirror Node REST API to automate and improve gas estimation.
Dynamic gas management is now considered necessary for reliable smart contract deployment on EVM networks like Hedera. Using automated estimation, safety buffers, and routine monitoring helps prevent costly failures and keeps decentralized applications running smoothly as conditions change.
Previous Articles: