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 current hermes keys balance command was introduced with this PR, #2232. As I recall the idea was to output the balance of the token used for gas, as the interest was knowing if there was enough funds to submit a transaction.
I think it would be a good idea to improve this command, the following solutions come to my mind:
Add an optional flag --denom to specify the denom to query, with a special value to query all denom. For example:
hermes keys balance --chain <CHAIN_ID> --key-name <KEY_NAME> --denom samoleans to display only the amount of samoleans
hermes keys balance --chain <CHAIN_ID> --key-name <KEY_NAME> --denom all to display the balance for all denom
hermes keys balance --chain <CHAIN_ID> --key-name <KEY_NAME> to display the balance of the gas_price denom
Add an optional flag --all which outputs the balance for all denom when used, and only the balance of the gas_price denom if not used. For example:
hermes keys balance --chain <CHAIN_ID> --key-name <KEY_NAME> to display only the balance of gas_price denom
hermes keys balance --chain <CHAIN_ID> --key-name <KEY_NAME> --all to display the balance of all denom
Update the command to always output the balance of all denoms
I have a preference for the first solution, adding a --denom flag, as it keeps the actual command as it is, but gives the user the possibility to have a more specific output.
Summary of Bug
hermes keys balance
only shows the balance of the config'sgas_price
denom.I am pretty sure this used to work like the
gaiad query bank balance
counterpart but haven't traced the PR that change this.Version
Steps to Reproduce
Acceptance Criteria
For Admin Use
The text was updated successfully, but these errors were encountered: