Chain ID: shentu-2.2
| Node Version: v2.14.1
note
First You Need Set Variabels
MONIKER=<YOUR_MONIKER_NAME>
echo "export MONIKER=$MONIKER" >> $HOME/.bash_profile
echo "export SHENTU_CHAIN_ID="shentu-2.2"" >> $HOME/.bash_profile
source $HOME/.bash_profile
- Wallet
- Validator
- Token
- Service
- Governance
- Utility
- Delete
Wallet
Create Wallet
shentud keys add wallet
Recovery Wallet
shentud keys add wallet --recover
List All Wallet
shentud keys list
Delete Wallet
shentud keys delete wallet
Check Wallet Balance
shentud q bank balances $(shentud keys show wallet -a)
Validator
note
Make sure you have adjust YOUR_KEYBASE_ID, YOUR_DETAILS, YOUR_WEBSITE_URL
Create Validator
shentud tx staking create-validator \
--amount=1000000uctk \
--pubkey=$(shentud tendermint show-validator) \
--moniker=$MONIKER \
--identity="YOUR_KEYBASE_ID" \
--details="YOUR_DETAILS" \
--website="YOUR_WEBSITE_URL" \
--chain-id=$SHENTU_CHAIN_ID \
--commission-rate=0.10 \
--commission-max-rate=0.20 \
--commission-max-change-rate=0.01 \
--min-self-delegation=1000 \
--from=wallet \
--gas-adjustment=1.5 \
--gas="auto" \
--gas-prices=1uctk
Edit Validator
shentud tx staking edit-validator \
--new-moniker="YOUR MONIKER" \
--identity="IDENTITY KEYBASE" \
--details="DETAILS VALIDATOR" \
--website="LINK WEBSITE" \
--chain-id=$SHENTU_CHAIN_ID \
--from=wallet \
--gas-adjustment=1.5 \
--gas="auto" \
--gas-prices=1uctk
Check Jailed Reason
shentud query slashing signing-info $(shentud tendermint show-validator)
Unjail Validator
shentud tx slashing unjail --from wallet --chain-id $SHENTU_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 1uctk -y
Token
Withdraw Rewards
shentud tx distribution withdraw-all-rewards --from wallet --chain-id $SHENTU_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 1uctk -y
Withdraw Rewards with Comission
shentud tx distribution withdraw-rewards $(shentud keys show wallet --bech val -a) --commission --from wallet --chain-id $SHENTU_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 1uctk -y
Delegate Tokens to Your Validator
shentud tx staking delegate $(shentud keys show wallet --bech val -a) 100000uctk --from wallet --chain-id $SHENTU_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 1uctk -y
Redelegate Tokens to Another Validator
shentud tx staking redelegate $(shentud keys show wallet --bech val -a) <TO_VALOPER_ADDRESS> 100000uctk --from wallet --chain-id $SHENTU_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 1uctk -y
Unbond Tokens from Your Validator
shentud tx staking unbond $(shentud keys show wallet --bech val -a) 100000uctk --from wallet --chain-id $SHENTU_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 1uctk -y
Send Tokens to Any Wallet
shentud tx bank send wallet <TO_WALLET_ADDRESS> 100000uctk --from wallet --chain-id $SHENTU_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 1uctk -y
Service
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
Governance
tip
For Vote, You can change the value of yes to no, abstain, no_with_veto
Vote
shentud tx gov vote 1 yes --from wallet --chain-id $SHENTU_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 1uctk -y
List all Proposals
shentud query gov proposals
Check Vote
shentud tx gov vote PROPOSAL_NUMBER VOTE_OPTION --from wallet --chain-id $SHENTU_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 1uctk -y
Create new Proposal
shentud tx gov submit-proposal \
--title="Title" \
--description="Description" \
--deposit=10000000uctk \
--type="Text" \
--from=wallet \
--gas-adjustment 1.5 \
--gas "auto" \
--gas-prices=1uctk \
-y
Utility
Set Indexer null / kv
sed -i 's|^indexer *=.*|indexer = "null"|' $HOME/.shentud/config/config.toml
Get Validator Info
shentud status 2>&1 | jq .ValidatorInfo
Get Denom Info
shentud q bank denom-metadata -oj | jq
Get Sync Status
shentud status 2>&1 | jq .SyncInfo.catching_up
Get Latest Height
shentud status 2>&1 | jq .SyncInfo.latest_block_height
Get Node Peer
echo $(shentud tendermint show-node-id)'@'$(curl -s ifconfig.me)':'$(cat $HOME/.shentud/config/config.toml | sed -n '/Address to listen for incoming connection/{n;p;}' | sed 's/.*://; s/".*//')
Set Minimum Gas Price
sed -i -e "s/^minimum-gas-prices *=.*/minimum-gas-prices = \"0.0025uctk\"/" $HOME/.shentud/config/app.toml
Enable Prometheus
sed -i 's|^prometheus *=.*|prometheus = true|' $HOME/.shentud/config/config.toml
Reset Chain Data
shentud tendermint unsafe-reset-all --home $HOME/.shentud --keep-addr-book
Delete
WARNING!!! Please, before you advance to the following step! The entire chain data will be gone! Make sure you have a backup of your priv_validator_key.json!
Delete Node
sudo systemctl stop shentud && sudo systemctl disable shentud && sudo rm /etc/systemd/system/shentud.service && sudo systemctl daemon-reload && sudo rm -rf $(which shentud) && rm -rf $HOME/.shentud