Voting via HMY CLI
Make sure to read the introduction and rules here first.
To install HMY CLI head here.
For a complete reference on all available commands for governance:
1
./hmy governance --help
Copied!

List Spaces

1
./hmy governance list-space
Copied!
Output example:
1
KEY | NETWORK | NAME
2
------------------+---------+------------------
3
staking-mainnet | 1 | Harmony Mainnet
4
staking-testnet | 2 | Harmony Testnet
Copied!

List Proposals

1
./hmy governance list-proposal --space=staking-mainnet
Copied!

View Proposal

1
./hmy governance view-proposal --proposal=QmdmnVwW6ob5UfB9hNYxKsRXAyM52jQpNXsV5Vw4fNbiqa
Copied!

Vote on Proposal

1
./hmy governance vote-proposal --proposal=QmdmnVwW6ob5UfB9hNYxKsRXAyM52jQpNXsV5Vw4fNbiqa --choice=agree --key=key-name
Copied!
key is the key name of your validator imported via hmy and available in ./hmy keys list

New Proposal

1
./hmy governance new-proposal --proposal-yaml proposal.yaml --key=key-name
Copied!
For the proposal.yaml file, you can use the template below. Change it accordingly:
1
space: staking-mainnet
2
start: 2020-04-16 21:45:12
3
end: 2020-04-21 21:45:12
4
choices:
5
- agree
6
- disagree
7
title: MyTytle
8
body: |
9
Add here the body text
Copied!
Start and end time is in UTC, Time Zone (Coordinated Universal Time).
Last modified 6mo ago