Skip to content
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

Add CLI command for estimating gas cost of a transaction #2723

Closed
tjanez opened this issue Feb 25, 2020 · 0 comments · Fixed by #3072
Closed

Add CLI command for estimating gas cost of a transaction #2723

tjanez opened this issue Feb 25, 2020 · 0 comments · Fixed by #3072
Labels
c:cli Category: command line interface c:consensus/tendermint Category: Tendermint-based consensus

Comments

@tjanez
Copy link
Member

tjanez commented Feb 25, 2020

SUMMARY

When a user creates a transaction using CLI, he needs to specify transaction.fee.gas, i.e. the maximum amount of gas a transaction can spend, but he has to estimate the gas cost of a transaction manually.

We already support automatically estimating a transaction's gas cost:
https://github.com/oasislabs/oasis-core/blob/ffa12899c2fc44aed9848ab87d6709a8805b2bc3/go/consensus/api/api.go#L89-L90

We just need to expose it via CLI.

ISSUE TYPE
  • Feature Idea
@tjanez tjanez added c:consensus/tendermint Category: Tendermint-based consensus c:cli Category: command line interface labels Feb 25, 2020
@kostko kostko mentioned this issue Feb 26, 2020
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c:cli Category: command line interface c:consensus/tendermint Category: Tendermint-based consensus
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant