How to Vote Using Command Lines

Image for post
Image for post

In this post are instructions on how to vote for community members using the command line wallet.

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:

Image for post
Image for post

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 “:”)
Image for post
Image for post

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

1. Get proposal information through the following command:

hcAutonomyvoter inventory

Output:

Image for post
Image for post

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:

Image for post
Image for post

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:

Image for post
Image for post

Happy voting!

Written by

The New Standard of Value

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store