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 -s node

7. Run the node

Open Staking Network
Partner Network
Open Staking Network
./node.sh -S -c -z -I -N staking -k [BLS KEY FILE].key
Partner Network
./node.sh -S -c -z -I -N partner -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. Get tokens for your validator

Open Staking Testnet
Partner Testnet
Open Staking Testnet
curl -X GET https://faucet.os.hmny.io/fund?address=[ONE ADDRESS]
Partner Testnet
curl -X GET https://faucet.ps.hmny.io/fund?address=[ONE ADDRESS]

12. Create your Validator

Open Staking Testnet
Partner Testnet
Open Staking Testnet
./hmy --node="https://api.s0.os.hmny.io" staking create-validator \
--validator-addr [ONE ADDRESS] --amount 100000 \
--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 100000 --passphrase
Partner Testnet
./hmy --node="https://api.s0.ps.hmny.io" staking create-validator \
--validator-addr [ONE ADDRESS] --amount 100000 \
--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 100000 --passphrase

13. Check that your ONE address exists as a validator

Open Staking Testnet
Partner Testnet
Open Staking Testnet
./hmy --node="https://api.s0.os.hmny.io" blockchain validator all | grep [ONE ADDRESS]
Partner Testnet
./hmy --node="https://api.s0.ps.hmny.io" blockchain validator all | grep [ONE ADDRESS]

14. Collect rewards

Open Staking Testnet
Partner Testnet
Open Staking Testnet
./hmy --node="https://api.s0.os.hmny.io" staking collect-rewards --delegator-addr [ONE ADDRESS] --passphrase
Partner Testnet
./hmy --node="https://api.s0.ps.hmny.io" staking collect-rewards --delegator-addr [ONE ADDRESS] --passphrase

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

Open Staking Testnet
Partner Testnet
Open Staking Testnet
./hmy --node="https://api.s0.os.hmny.io" blockchain validator information [VALIDATOR ONE ADDRESS]
Partner Testnet
./hmy --node="https://api.s0.ps.hmny.io" blockchain validator information [VALIDATOR ONE ADDRESS]

‚Äč