Setting Up Klever Validator
This blog is focusing on how to setup a Klever validator. It is straight forward and simple. Hope the steps are easy to follow.
Step 1 — Install docker
Create a cloud instance using your favorite VPS. Then on your cloud instance do all the updates needed and install docker.
Here is the commands to install docker
sudo apt-get install software-properties-common
curl -fsl https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add —
sudo add-apt-repository “deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable”sudo apt update
sudo apt install docker-ce
sudo systemctl status docker
sudo apt install docker-compose
Step 2 — Create BLS Key and the Wallet
Then lets create a directory called wallet. Here we will save our bls key and our wallet we plan to use for the duration of TestNet. Remeber to keep these safe
mkdir wallet — create bls key
docker run -it — rm — user “$(id -u):$(id -g)” \
-v $(pwd)/wallet:/opt/klever-blockchain \
— entrypoint=/usr/local/bin/keygenerator kleverapp/klever-go-testnet:latest — create wallet
docker run -it — rm — user “$(id -u):$(id -g)” \
-v $(pwd)/wallet:/opt/klever-blockchain \
— entrypoint=/usr/local/bin/operator kleverapp/klever-go-testnet:latest “create-wallet”
The contents of the directory should be as the below
If you wish to see the wallet address you created now, use this command
docker run -it — rm — user “$(id -u):$(id -g)” \
-v $(pwd)/wallet:/opt/klever-blockchain \
— entrypoint=/usr/local/bin/operator kleverapp/klever-go-testnet:latest “getAddress”
Step 3 — Run the node
Now we will create all the directories required
mkdir klv
cd klv
mkdir -p $(pwd)/node/config $(pwd)/node/db $(pwd)/node/logs
We need to download a backup of the node data and also the config. Will also extract to the correct location
curl -k https://backup.testnet.klever.finance/config.testnet.100005.tar.gz \
| tar -xz -C ./nodecurl -k https://backup.testnet.klever.finance/kleverchain.latest.tar.gz \
| tar -xz -C ./node
Ensure to copy the validatorKey.pem from the wallet directory to the config directory
cp ~/wallet/validatorKey.pem ~/klv/node/config/
We can now run the node with the below command
docker run -it — rm \
— user “$(id -u):$(id -g)” \
— name klever-node \
-v $(pwd)/node/config:/opt/klever-blockchain/config/node \
-v $(pwd)/node/db:/opt/klever-blockchain/db \
-v $(pwd)/node/logs:/opt/klever-blockchain/logs \
— network=host \
— entrypoint=/usr/local/bin/validator \
kleverapp/klever-go-testnet:latest \
‘ — log-save’ ‘ — rest-api-interface=0.0.0.0:8080’
Let your node get in sync. View this info to ensure all is in sync
Step 4 — Register your validator, freeze and self delegate
You will need to register using the Klever form. You will need to provide details including the wallet you created. You will then within 24 hours receive your KLV. Ensure to join the Klever discord server. Also the programs full details can be found here
You can then register your validator as below
cd ~
docker run -it — rm — user “$(id -u):$(id -g)” \
-v $(pwd)/wallet:/opt/klever-blockchain \
— entrypoint=/usr/local/bin/operator — network=host kleverapp/klever-go-testnet:latest — key-file=./walletKey.pem create-validator YOUR_BLS_KEY 10 1100000000000 YOUR_VALIDATOR_IMAGE_URL YOUR_ADDRESS YOUR_ADDRESS
You will need to freeze 1.5 million of the KLV sent to you. Each node must lock 1.5 million KLV of it’s own on the node
docker run -it — rm — user “$(id -u):$(id -g)” \
-v $(pwd)/wallet:/opt/klever-blockchain \
— entrypoint=/usr/local/bin/operator — network=host kleverapp/klever-go-testnet:latest — key-file=./walletKey.pem freeze 1500000 KLV
Ensure to keep a copy of the freeze transaction hash. Then use the below so you can find the BUCKET ID.
docker exec -it klever-node operator tx-by-id your YOUR_HASH
You can now delegate that bucket to your node
docker run -it — rm — user “$(id -u):$(id -g)” \
-v $(pwd)/wallet:/opt/klever-blockchain \
— entrypoint=/usr/local/bin/operator — network=host kleverapp/klever-go-testnet:latest — key-file=./walletKey.pem delegate YOUR_ADDRESS YOUR_BUCKET_DI
Step 5 — Ensure your node is elected and signing
Now your node is registered as a validator but needs over 10 million KLV of delegations to be elected. The Klever team will review all nodes that are registered for validators and are in sync and will delegate 10 million to the node.
The KleverChain rotates the validators. You can see if you elected and making blocks and also view how many blocks you have made. This will happen once your delegation is over 10 million klv.
Congratulations
You are done! Congratulations if you got this far. One step closer to becoming a KleverChain validator.
About Staking4All
Staking4All provides non-custodial delegation services to Proof-of-Stake public blockchains. We enable cryptocurrency holders to take part in decentralized governance while holding onto and earning interest from their cryptocurrencies.
We are an experienced staking service provider for blockchain projects. Join our community today and earn rewards for helping secure networks.
Visit our Website, Twitter or our Blog to learn more about Staking4all.