- Github : https://github.com/terpnetwork/terp-core
- Discord Channel :https://discord.gg/SQFJMGV8
Terp node setup for testnet tutorial
1-ɪɴᴛᴀʟʟᴀᴛɪᴏɴ ᴏɴᴇ ᴛɪᴍᴇ (ꜱᴄʀɪᴘᴛ ᴀᴜᴛᴏᴍᴀᴛɪᴄ ɪɴꜱᴛᴀʟʟᴀᴛɪᴏɴ)
wget -O terp.sh https://raw.githubusercontent.com/appieasahbie/terp/main/terp.sh && chmod +x terp.sh && ./terp.sh
-
Minimal
4 GB RAM
100 GB SSD
3.2 x4 GHz CPU
-
Recommended
8 GB RAM
1 TB NVME SSD
3.2 GHz x4 GHz CPU / ubuntu linux x64-x86
sudo ufw default allow outgoing
sudo ufw default deny incoming
sudo ufw allow ssh/tcp
sudo ufw allow ${TERP_PORT}656,${TERP_PORT}660/tcp
sudo ufw enable
-
Update packages:
sudo apt-get update && sudo apt upgrade -y
-
Install toolchain
sudo apt-get install make build-essential gcc git jq chrony -y
-
Variables inloading into system
source $HOME/.bash_profile
-
Check the status of your node
journalctl -u terpd.service -f
( please save your keys on your nodepad and keep it save)
terpd keys add $WALLET
( In orde to recover you old wallet use this command)
terpd keys add $WALLET --recover
-
To see your current wallet use this command
terpd keys list
TERP_WALLET_ADDRESS=$(terpd keys show $WALLET -a)
TERP_VALOPER_ADDRESS=$(terpd keys show $WALLET --bech val -a)
echo 'export TERP_WALLET_ADDRESS='${TERP_WALLET_ADDRESS} >> $HOME/.bash_profile
echo 'export TERP_VALOPER_ADDRESS='${TERP_VALOPER_ADDRESS} >> $HOME/.bash_profile
source $HOME/.bash_profile
-
Firstly check your Balance you must have 1 terp to create a validator
terpd query bank balances $TERP_WALLET_ADDRESS
To create validator use this command
terpd tx staking create-validator \
--amount 10000000uterpx \
--from $WALLET \
--commission-max-change-rate "0.01" \
--commission-max-rate "0.2" \
--commission-rate "0.07" \
--min-self-delegation "1" \
--pubkey $(terpd tendermint show-validator) \
--moniker $NODENAME \
--chain-id $TERP_CHAIN_ID
(Please replace enter you moniker and replace bij wallet)
terpd q staking validators | grep moniker
-
Unjail Validator
terpd tx slashing unjail --from wallet --chain-id athena-2 --fees 2000upersyx
-
Jail Reason
terpd query slashing signing-info $(terpd tendermint show-validator)
-
List All Active Validators
terpd q staking validators -oj --limit=3000 | jq '.validators[] | select(.status=="BOND_STATUS_BONDED")' | jq -r '(.tokens|tonumber/pow(10; 6)|floor|tostring) + " \t " + .description.moniker' | sort -gr | nl
-
List All Inactive Validators
terpd q staking validators -oj --limit=3000 | jq '.validators[] | select(.status=="BOND_STATUS_UNBONDED")' | jq -r '(.tokens|tonumber/pow(10; 6)|floor|tostring) + " \t " + .description.moniker' | sort -gr | nl
-
View Validator Details
terpd q staking validator $(terpd keys show wallet --bech val -a)
-
Delegate
terpd tx staking delegate <TO_VALOPER_ADDRESS> 1000000uterpx --from wallet --chain-id athena-1 --gas-prices 0.1uterpx --gas-adjustment 1.5 --gas auto -y
-
Redelegate
terpd tx staking redelegate $(terpd keys show wallet --bech val -a) <TO_VALOPER_ADDRESS> 1000000uterpx --from wallet --chain-id athena-1 --gas-prices 0.1uterpx --gas-adjustment 1.5 --gas auto -y
-
Unbond
terpd tx staking unbond $(terpd keys show wallet --bech val -a) 1000000uterpx --from wallet --chain-id athena-1 --gas-prices 0.1uterpx --gas-adjustment 1.5 --gas auto -y
terpd status 2>&1 | jq .ValidatorInfo
terpd status 2>&1 | jq .SyncInfo.catching_up
terpd status 2>&1 | jq .SyncInfo.latest_block_height
sudo systemctl stop terpd && sudo systemctl disable terpd && sudo rm /etc/systemd/system/terpd.service && sudo systemctl daemon-reload && rm -rf $HOME/.terp && rm $(which terpd)
sudo systemctl enable terpd
sudo systemctl disable terpd
sudo systemctl start terpd
sudo systemctl stop terpd
sudo systemctl restart terpd
sudo systemctl status terpd
sudo journalctl -u terpd -f --no-hostname -o cat
That`s All
(don`t forget to give me star enjoy )