You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The mirror node endpoint contracts/call used to return estimation only for read-only smart contract calls. However, this has changed and now we can also get estimations for transfers, account creations etc. The changes are not reflected in the estimateGas method
Steps to reproduce
Call eth_estimateGas with a transaction transferring value between two accounts
You will not get the base cost of 21000 (0x5208)
Refactoring suggestions
We can keep the try/catch in our code and implement a retry mechanism. In case the mirror node is not available, we can retry the call for N number of attempts.
If there is still no response we can do the following:
For contract deploy the intrinsicGasCost method, from the precheck file, can be used
For contract call return some hardcoded value (TBD)
For anything else the base cost - 21000
Hedera network
other
Version
0.46.0
Operating system
None
The text was updated successfully, but these errors were encountered:
Description
The mirror node endpoint contracts/call used to return estimation only for read-only smart contract calls. However, this has changed and now we can also get estimations for transfers, account creations etc. The changes are not reflected in the estimateGas method
Steps to reproduce
Refactoring suggestions
We can keep the try/catch in our code and implement a retry mechanism. In case the mirror node is not available, we can retry the call for N number of attempts.
If there is still no response we can do the following:
Hedera network
other
Version
0.46.0
Operating system
None
The text was updated successfully, but these errors were encountered: