Skip to main content

Wallet

Add New Wallet

shentud keys add wallet

Recover

shentud keys add wallet --recover

List All Wallets

shentud keys list

Delete wallet

shentud keys delete wallet

Check Balance

shentud q bank balance --address=$(shentud keys show wallet -a) --denom=uctk

Create Validator

shentud tx staking create-validator <(cat <<EOF
{
"pubkey": $(shentud tendermint show-validator),
"amount": "1000000uctk",
"moniker": "YOUR_MONIKER_NAME",
"identity": "YOUR_KEYBASE_ID",
"website": "YOUR_WEBSITE_URL",
"security": "YOUR_EMAIL",
"details": "YOUR_DETAILS",
"commission-rate": "0.1",
"commission-max-rate": "0.20",
"commission-max-change-rate": "0.05",
"min-self-delegation": "1"
}
EOF
) \
--chain-id shentu-2.2 \
--from wallet \
--gas-adjustment 1.4 \
--gas auto \
--gas-prices 0.1uctk \
-y

Edit Validator

shentud tx staking edit-validator \
--new-moniker "YOUR_MONIKER_NAME" \
--identity "YOUR_KEYBASE_ID" \
--details "YOUR_DETAILS" \
--website "YOUR_WEBSITE_URL" \
--chain-id shentu-2.2 \
--commission-rate 0.05 \
--from your-wallet \
--gas-adjustment 1.4 \
--gas auto \
--gas-prices 0.1uctk \
-y

Check sync

shentud status 2>&1 | jq .sync_info.catching_up

Delegate to Yourself

shentud tx staking delegate $(shentud keys show wallet --bech val -a) 1000000uctk \
--from wallet \
--chain-id=shentu-2.2 \
--gas auto \
--gas-adjustment 1.5 \
--fees 100uctk \
-y

Withdraw rewards and commission

shentud tx distribution withdraw-rewards $(shentud keys show wallet --bech val -a) \
--commission \
--from wallet \
--chain-id=shentu-2.2 \
--gas auto \
--gas-adjustment 1.5 \
--fees 100uctk \
-y

Unjail validator

shentud tx slashing unjail \
--from wallet \
--chain-id=shentu-2.2 \
--gas auto \
--gas-adjustment 1.5 \
--fees 100uctk \
-y

Unbond

shentud tx staking unbond $(shentud keys show wallet --bech val -a) 1000000uctk \
--from wallet \
--chain-id=shentu-2.2 \
--gas auto \
--gas-adjustment 1.5 \
--fees 100uctk \
-y

Vote

shentud tx gov vote 1 yes \
--from wallet \
--chain-id shentu-2.2 \
--fees 100uctk \
-y

Services Management

# Reload Service
sudo systemctl daemon-reload

# Enable Service
sudo systemctl enable shentud

# Disable Service
sudo systemctl disable shentud

# Start Service
sudo systemctl start shentud

# Stop Service
sudo systemctl stop shentud

# Restart Service
sudo systemctl restart shentud

# Check Service Status
sudo systemctl status shentud

# Check Service Logs
sudo journalctl -u shentud -f --no-hostname -o cat

Snapshot

sudo systemctl stop shentud 

cp $HOME/.shentud/data/priv_validator_state.json $HOME/.shentud/priv_validator_state.json.backup

shentud tendermint unsafe-reset-all --home $HOME/.shentud --keep-addr-book
curl https://snapshots.nodesync.top/Mainnet/Shentu/shentu_snap.tar.lz4 | lz4 -dc - | tar -xf - -C "$HOME/.shentud"

mv $HOME/.shentud/priv_validator_state.json.backup $HOME/.shentud/data/priv_validator_state.json

sudo systemctl restart shentud && sudo journalctl -u shentud -fo cat

Backup Validator

cat $HOME/.shentud/config/priv_validator_key.json

Remove node

cd $HOME
sudo systemctl stop shentud
sudo systemctl disable shentud
sudo rm /etc/systemd/system/shentud.service
sudo systemctl daemon-reload
rm -f $(which shentud)
rm -rf $HOME/.shentud
rm -rf $HOME/shentu