Harmony Guides
How to vote with hmy

πŸ—³οΈ CLI Governance Voting Guide

Validator Participation: Exercise governance rights through command-line voting using the hmy client.


πŸ”„ HMY Version Verification

⚠️

Version Requirement: Ensure you're running the latest hmy client before participating in governance votes.

Expected Version:

Harmony (C) 2020. hmy, version v1-dbd9901 (runner@harmony.one 2022-08-29T08:51:21+0000)

πŸ“‹ Check Command: ./hmy version - Update if version is outdated.

πŸ“ Voting Commands

Example Reference: Commands for HIP-28b (opens in a new tab) proposal voting.

βœ… Yes Vote:

./hmy governance vote-proposal --proposal 0x5aa26f3aed23ab3ce751cbc885bc8574f4f3e2d65784339401645803d56892b4 --key serviceharmony --choice 1 --passphrase

❌ No Vote:

./hmy governance vote-proposal --proposal 0x5aa26f3aed23ab3ce751cbc885bc8574f4f3e2d65784339401645803d56892b4 --key serviceharmony --choice 2 --passphrase

🀐 Abstain:

./hmy governance vote-proposal --proposal 0x5aa26f3aed23ab3ce751cbc885bc8574f4f3e2d65784339401645803d56892b4 --key serviceharmony --choice 3 --passphrase
⚠️

Key Configuration: Replace serviceharmony with your actual key name from ./hmy keys list and provide your wallet password when prompted.


πŸ”§ Command Parameter Breakdown

Parameter Reference: Understanding each component of the governance vote command.

🎯 --proposal - Proposal ID from the voting page URL
πŸ”‘ --key - Your wallet name from ./hmy keys list
πŸ“Š --choice - Voting option (sequential numbering, supports multi-option lists)
πŸ” --passphrase - Your node wallet password

πŸ“‹ Choice Values

Standard Mapping: Tested choice-to-vote translation for basic proposals:

βœ… --choice 1 = "Yes"
❌ --choice 2 = "No"
🀐 --choice 3 = "Abstain"