Nodes

guruGuru
search

Idep - Setup Guide

Back to projectRU
Stuck? AsktelegramNodes Guru telegram community

Rent on

1. Install

Use our script for a quick installation:

wget -q -O idep.sh https://api.nodes.guru/idep.sh && chmod +x idep.sh && sudo /bin/bash idep.sh

Set a name for your node, a name for the wallet, and wait for the installation to complete. After that execute the following command:

source $HOME/.bash_profile

You can check the node logs with the command:

journalctl -u iond -f

2. Create a validator

Your node must be synchronized to perform further actions, you can check if the node is synchronized with the command:

curl -s localhost:26657/status | jq .result.sync_info.catching_up

If the result is false, then the node is synchronized (if the result is false too fast, check your current block height by the command curl -s localhost:26657/status).

2.1. Create a wallet

To create a wallet, use the command ($IDEP_WALLET – the name of the wallet, which you entered during installation, it is a variable, so change something yourself in the command is not necessary):

iond keys add $IDEP_WALLET

Enter the password you want to set to access this wallet, press Enter.

As a result, the following window should appear (the data will be yours, save the bottom line – this is your mnemonic):

Idep-1

Copy the address (in this screenshot it is idep1phl330aec8cej66u7j53xgxfau9g89etlx8a32), we will need it for the next step.

2.2 Faucet

Go to faucet, enter the wallet address, confirm the CAPTCHA and click “Send”:

Idep-2

The result should be like the following:

Idep-3

Check your balance:

iond q bank balances YOUR_WALLET_ADDRESS

As a result, you should see a positive balance of idep tokens.

2.3. Becoming a validator

To become a validator run the command:

iond tx staking create-validator \
--amount=90999000000idep \
--pubkey=`iond tendermint show-validator` \
--moniker="$IDEP_NODENAME" \
--chain-id="$IDEP_CHAIN" \
--commission-rate="0.10" \
--commission-max-rate="0.20" \
--commission-max-change-rate="0.01" \
--min-self-delegation="1" \
--from="$IDEP_WALLET"

Enter the password, confirm the transaction. Check if we have become the validator by the command:

curl -s localhost:26657/status | jq .result.validator_info.voting_power

The result must be greater than 0:

Umee-3

After you become a validator you can ask for the validator role in Discord, to do this, write your node name in #validators channel and ping Aidas#1949.

3. Additional

Unjail:

iond tx slashing unjail --chain-id $IDEP_CHAIN --from $IDEP_WALLET

Withdraw rewards:

iond tx distribution withdraw-all-rewards --from $IDEP_WALLET --chain-id $IDEP_CHAIN

Check balance:

iond q bank balances ADDRESS

Check your balance:

iond q bank balances $(iond keys show $IDEP_WALLET -a)

Get your valoper address:

iond keys show $IDEP_WALLET --bech val

Bond more tokens (if you want increase your validator stake you should bond more to your valoper address):

iond tx staking delegate YOUR_VALOPER_ADDRESS AMOUNTidep --chain-id $IDEP_CHAIN --from $IDEP_WALLET

Check your node status:

curl localhost:26657/status

List of active validators:

iond query staking validators --limit 1000 -o json | jq -r '.validators[] | select(.status=="BOND_STATUS_BONDED") | [.operator_address, .status, (.tokens|tonumber / pow(10; 6)), .description.moniker] | @csv' | column -t -s"," | sort -k3 -n -r | nl