Setup Cheatsheet

Example overall validator flow

If you are new to setting up Validators, start here.

  1. Access your cloud instance.

ssh -i [KEY].pem [SSH ADDRESS]
AWS Connect Example

2. Install tmux, if your Linux distribution does not come with it.

sudo yum install tmux

3. Download the Harmony CLI.

curl -LO && mv hmycli hmy && chmod +x hmy

4. Create a BLS Key.

./hmy keys generate-bls-key --passphrase

5. Download

curl -LO \
&& chmod a+x

6. Start a new tmux session called node.

tmux new-session -s node

7. Run the node.

./ -S -z -k [BLS KEY FILE].key

8. Detach from the tmux session by pressing CTRL and B at the same time, then press D.

9. Check that your node is syncing (block height > 0).

./hmy blockchain latest-header

10. Create a new wallet.

./hmy keys add [ACCOUNT NAME] --passphrase

11. Fund your ONE address.

12. Create your Validator.

./hmy --node="" staking create-validator \
--validator-addr [ONE ADDRESS] --amount 10000 \
--bls-pubkeys [BLS PUBLIC KEY1],[BLS PUBLIC KEY2] \
--name JohnWhitton --identity JohnIdentity --details "John The Validator" \
--security-contact John --website \
--max-change-rate 0.1 --max-rate 0.1 --rate 0.1 \
--max-total-delegation 100000000 --min-self-delegation 10000 --passphrase

13. Check that your ONE address exists as a validator.

./hmy --node="" blockchain validator all | grep [ONE ADDRESS]

14. Collect rewards.

./hmy --node="" staking collect-rewards --delegator-addr [ONE ADDRESS] --passphrase

15. Check validator information for active flag / availability (block signed) / etc ...

./hmy --node="" blockchain validator information [VALIDATOR ONE ADDRESS]