NG
Rizon

Rizon

Setup Guide

1. Install dependencies

Install Git

apt install -y git

Install Go >=1.16

wget https://golang.org/dl/go1.16.5.linux-amd64.tar.gz
rm -rf /usr/local/go && tar -C /usr/local -xzf go1.16.5.linux-amd64.tar.gz
echo 'export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin' >> ~/.bashrc
source ~/.bashrc
go version

Install make

apt install make

2. Install RIZON Blockchain

If you have previous version of rizon node then:

Stop validator:

pkill screen

Backup old keys:

mkdir ~/rizon_backup
cp ~/.rizon/*address ~/rizon_backup
cp ~/.rizon/*info ~/rizon_backup
cp ~/.rizon/keyhash ~/rizon_backup
cp -r ~/.rizon/config/ ~/rizon_backup

If you missed your seed phrase, then export private key and save the command output in a safe place.

rizond keys export <wallet_name> 

Remove old config:

cd ~
rm -rf ./rizon
rm -rf ~/.rizon/config/genesis.json
rizond unsafe-reset-all

Proceed with installation:

cd ~
git clone https://github.com/rizon-world/rizon.git && cd rizon
git checkout v0.2.3
make install

Check the binary has been installed – should be v0.2.3

rizond version

3. Setup initial node

Specify your node name (moniker) and init your node.

rizond init <moniker> --chain-id groot-011

Prepare genesis.json

wget https://raw.githubusercontent.com/rizon-world/testnet/groot-011/genesis.json
cp -f genesis.json ~/.rizon/config/genesis.json

Edit the app.toml file to prevent spamming. It rejects incoming transactions with less than the minimum gas prices.

sed -i 's/minimum-gas-prices = ""/minimum-gas-prices = "0.0001uatolo"/g' ~/.rizon/config/app.toml

We need to add seed nodes to config.toml, to do it do the following commands. Seed list can be found here

seeds="[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:30519,[email protected]:26656,[email protected]:36656,[email protected]:26656,[email protected]:26656,[email protected]:26656"
sed -i.bak -e "s/^seeds *=.*/seeds = \"$seeds\"/" $HOME/.rizon/config/config.toml

4. Connect to the network

Create screen and start node

screen -S rizond
rizond start

To detach screen press Ctrl+A then D

You need to wait until blocks are fully synced. You can check the sync is finished by command below.

rizond status 2>&1 | awk -F'catching_up":' '{print $2}' | cut -c -5

If command returns false, sync has finished. Otherwise, you need to wait more.

You can check last block using explorer and compare it with the last node block:

rizond status 2>&1 | jq ."SyncInfo"."latest_block_height"

5. Wallet creation

For a new wallet creation (not mandatory for update) insert desired name and execute:

rizond keys list

For wallet creation insert desired name and execute:

rizond keys add <wallet_name>

This command returns wallet address and mnemonic. You must remember the results.

Rizon-0

6. Request tokens

We need a few tokens to activate our validator node. To get tokens use faucet

If your node has been fully synchronized, you will see the balance on your wallet. You can check balance using command:

rizond query bank balances <your address>

Rizon-1

Despite on your sync status, you can check balance here https://testnet.mintscan.io/rizon/account/<ADDRESS>

7. Create validator

After the node is fully synced and you get testnet tokens, you can create validator via send create-validator tx to join testnet. Specify your moniker and wallet name and execute:

rizond tx staking create-validator \
--amount="9999000uatolo" \
--pubkey=$(rizond tendermint show-validator) \
--moniker="YOUR_NODE_NAME" \
--commission-rate="0.10" \
--commission-max-rate="0.20" \
--commission-max-change-rate="0.01" \
--min-self-delegation="1" \
--from NAME_OF_YOUR_WALLET \
--chain-id=groot-011 \
--fees="1000uatolo"

Rizon-2

Once the create-validator transaction has completed, you can check whether your validator has been properly added via explorer. Search your validator by name (moniker) in both Active and Inactive sections.

Rizon-3

 

8. Useful

List of wallets

rizond keys list

Wallet address marked by red

Rizon-4

Explorer

https://testnet.mintscan.io/rizon/

You can find your wallet using it’s address from the previous step

https://testnet.mintscan.io/rizon/account/<wallet address>

You can find your validator by address:

rizond tendermint show-validator

Then go to https://testnet.mintscan.io/rizon/validators/<address>

Get valoper address for delegation

rizond keys show <wallet_name> --bech val

Validator info

rizond q staking validator <valoper_address_from_previous_point>

Unjail validator

rizond tx slashing unjail --from <wallet_name> --chain-id groot-011 --fees="100uatolo"

Restoring existing wallet

rizond keys add "WALLET_NAME" --recover

Check if your validator is active

rizond q tendermint-validator-set | grep `rizond tendermint show-address`
Stuck? Ask!

By continuing to use our website, you consent to our use of cookies in accordance with our cookie policy