Nodes

guruGuru
search

DeFund - Setup Guide

Back to projectRU
Stuck? AsktelegramNodes Guru telegram community

Rent on

Install

Use our script for a quick installation:

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

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

source $HOME/.bash_profile

Create a wallet, don’t forget to save the mnemonic.

defundd keys add wallet


Get tokens in the faucet.
After full synchronization, check the balance, if everything is okay go to the next step.

defundd q bank balances YOUR_WALLET_ADDRESS


Create a validator:

defundd tx staking create-validator \
--amount=1000000ufetf \
--pubkey=$(defundd tendermint show-validator) \
--moniker="$DEFUND_NODENAME" \
--chain-id=defund-private-1 \
--commission-rate="0.10" \
--commission-max-rate="0.20" \
--commission-max-change-rate="0.01" \
--min-self-delegation="1000000" \
--gas="auto" \
--from=wallet

Additional

You can check the node logs with the command:

journalctl -u defund -f

Restart node:

systemctl restart defund

Check your node status:

curl localhost:26657/status

Check node synchronization, if results false – node is synchronized

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

Get your valoper address:

defundd keys show wallet --bech val -a

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

defundd tx staking delegate YOUR_VALOPER_ADDRESS 10000000ufetf --from wallet --chain-id defund-private-1 --fees 5000ufetf

Active validators list:

defundd query staking validators --limit 2000 -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

Inactive validators list:

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