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 https://harmony.one/hmycli && mv hmycli hmy && chmod +x hmy

4. Create a BLS Key.

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

5. Download node.sh.

curl -LO https://raw.githubusercontent.com/harmony-one/harmony/master/scripts/node.sh \
&& chmod a+x node.sh

6. Start a new tmux session called node.

tmux new-session -s node

7. Run the node.

./node.sh -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="https://api.s0.t.hmny.io" 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 john@harmony.one \
--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="https://api.s0.t.hmny.io" blockchain validator all | grep [ONE ADDRESS]

14. Collect rewards.

./hmy --node="https://api.s0.t.hmny.io" staking collect-rewards --delegator-addr [ONE ADDRESS] --passphrase

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

./hmy --node="https://api.s0.t.hmny.io" blockchain validator information [VALIDATOR ONE ADDRESS]