In this post are instructions on how to vote for community members using the command line wallet.
Build infrastructure
1. Update to the latest wallet version: https://github.com/HcashOrg/hcwallet/releases/tag/Release2.1.0
2. Download hcAutonomyvoter: https://github.com/HcashOrg/hcAutonomy/releases/tag/v1.0.0
3. Edit hcAutonomyvoter.conf and move file to:
Linux: ~/.hcAutonomyvoter
Windows: %LOCALAPPDATA%\HcAutonomyvoter
Mac: ~/Library/Application Support/HcAutonomyvoter
Mainnet: hcAutonomywww=https://autonomy.h.cash/api
Testnet: hcAutonomywww=https://testnet-autonomy.h.cash/api
Note: Recommended hcAutonomyvoter.con configuration is as follows:
4. Edit hcd configuration file:
- a. Input “%localappdata%” on command line
- b. Open hcd folder (if no such folder, please launch hcd fisrt, folder will be automatically created)
- c. Open hcd.conf to find “addrindex=1” and “txindex=1” (remove the “:”)
5. Launch hcd through the following command:
hcd — testnet -u admin -P 123
6. Launch hcwallet:
hcwallet — testnet -u admin -P 123 — hcusername admin — walletpass 123 — hcpassword 123
Voting for Proposal
1. Get proposal information through the following command:
hcAutonomyvoter inventory
Output:
Meaning that this user has 9 valid tickets to vote for this proposal
2. Vote through the following command:
hcAutonomyvoter vote 8bdebbc55ae74066cc57c76bc574fd1517111e56b3d1295bde5ba3b0bd7c3f67 yes
Note: yes for approval and no for objection
Output:
Enter the private passphrase and wait for voting to be confirmed. Normally it takes less than 5 minutes.
3. Get voting status through the following command:
hcAutonomyvoter tally 8bdebbc55ae74066cc57c76bc574fd1517111e56b3d1295bde5ba3b0bd7c3f67
Output: