MultiversX Tracker is Live!

Understanding the Inner Workings of eth_estimateGas in Smart Contracts

Etherum Reddit

More / Etherum Reddit 146 Views

I'm seeking clarification on how the eth_estimateGas
function operates under the hood. Does it run the smart contract in a manner similar to a dry run?

When I make a call to eth_estimateGas
, and I've intentionally hardcoded a failed require
statement within the contract, I get this error in the response. This behavior suggests that the function might execute the contract.

Could someone shed light on the internals of eth_estimateGas
and whether it indeed simulates a dry run of the contract, or if there's a different mechanism at play?

submitted by /u/Angular2Fan
[link] [comments]
Get BONUS $200 for FREE!

You can get bonuses upto $100 FREE BONUS when you:
πŸ’° Install these recommended apps:
πŸ’² SocialGood - 100% Crypto Back on Everyday Shopping
πŸ’² xPortal - The DeFi For The Next Billion
πŸ’² CryptoTab Browser - Lightweight, fast, and ready to mine!
πŸ’° Register on these recommended exchanges:
🟑 Binance🟑 Bitfinex🟑 Bitmart🟑 Bittrex🟑 Bitget
🟑 CoinEx🟑 Crypto.com🟑 Gate.io🟑 Huobi🟑 Kucoin.



Comments