-
Notifications
You must be signed in to change notification settings - Fork 9
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
Support EstimateGas #9
Comments
We need to resolve the related issue gnolang/gno#1070 about getting the correct "gas used" from the realm function call. |
See this issue about gas estimation in the main gno repo. gnolang/gno#1826 |
This issue was resolved by PR gnolang/gno#3498 which adds the gnoclient function |
GnoMobile is a framework to help developers deploy their Gno apps on mobile. A Gno app calls realm functions which subtract gas from the user's account. Some functions may require extra gas, for example to post a message with a large document. Therefore, it is useful to estimate the gas that will be used before calling the function. This presents special issues for mobile apps, as mentioned below.
Possible methods to estimate gas fees are:
In the end, we need to decide on one or more methods and have API support in Gno plus support for mobile app development in GnoMobile.
UPDATE: The gnoclient
EstimateGas
function was added to implement option 4. See this comment below.The text was updated successfully, but these errors were encountered: