On-chain safeguards to provide security insights and prevent attacks in real time.
shentud keys add
shentud keys add --recover
shentud keys list
shentud keys delete
shentud keys export
shentud keys import .backup
shentud q bank balances $(shentud keys show -a)
sudo journalctl -u shentud -f --no-hostname -o cat
sudo systemctl start shentud
sudo systemctl stop shentud
sudo systemctl restart shentud
sudo systemctl status shentud
sudo systemctl daemon-reload
sudo systemctl enable shentud
sudo systemctl disable shentud
shentud status 2>&1 | jq .SyncInfo
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/".*//')
curl -sS http://localhost:657/net_info | jq -r '.result.peers[] | "\(.node_info.id)@\(.remote_ip):\(.node_info.listen_addr)"' | awk -F ':' '{print $1":"$(NF)}'
shentud tx staking create-validator \
--amount=000000uctk \
--moniker="" \
--pubkey=$(shentud tendermint show-validator) \
--identity="" \
--details="" \
--website="" \
--security-contact= \
--chain-id=shentu-2.2 \
--commission-rate=0. \
--commission-max-rate=0.20 \
--commission-max-change-rate=0. \
--min-self-delegation=1 \
--from= \
--gas-adjustment="1.4" \
--fees="5000uctk"
shentud tx staking edit-validator \
--new-moniker="" \
--chain-id=shentu-2.2 \
--from= \
--gas-adjustment="1.4" \
--fees="5000uctk" -yshentud tx staking edit-validator \
--identity="" \
--chain-id=shentu-2.2 \
--from= \
--gas-adjustment="1.4" \
--fees="5000uctk"shentud tx staking edit-validator \
--details="" \
--chain-id=shentu-2.2 \
--from= \
--gas-adjustment="1.4" \
--fees="5000uctk"shentud tx staking edit-validator \
--commission-rate=0. \
--chain-id=shentu-2.2 \
--from= \
--gas-adjustment="1.4" \
--fees="5000uctk"shentud tx staking edit-validator \
--new-moniker="" \
--identity="" \
--chain-id=shentu-2.2 \
--from= \
--gas-adjustment="1.4" \
--fees="5000uctk"shentud tx staking edit-validator \
--new-moniker="" \
--details="" \
--chain-id=shentu-2.2 \
--from= \
--gas-adjustment="1.4" \
--fees="5000uctk"shentud tx staking edit-validator \
--new-moniker="" \
--commission-rate=0. \
--chain-id=shentu-2.2 \
--from= \
--gas-adjustment="1.4" \
--fees="5000uctk"shentud tx staking edit-validator \
--identity="" \
--details="" \
--chain-id=shentu-2.2 \
--from= \
--gas-adjustment="1.4" \
--fees="5000uctk"shentud tx staking edit-validator \
--identity="" \
--commission-rate=0. \
--chain-id=shentu-2.2 \
--from= \
--gas-adjustment="1.4" \
--fees="5000uctk"shentud tx staking edit-validator \
--details="" \
--commission-rate=0. \
--chain-id=shentu-2.2 \
--from= \
--gas-adjustment="1.4" \
--fees="5000uctk"shentud tx staking edit-validator \
--new-moniker="" \
--identity="" \
--details="" \
--chain-id=shentu-2.2 \
--from= \
--gas-adjustment="1.4" \
--fees="5000uctk"shentud tx staking edit-validator \
--new-moniker="" \
--identity="" \
--commission-rate=0. \
--chain-id=shentu-2.2 \
--from= \
--gas-adjustment="1.4" \
--fees="5000uctk"shentud tx staking edit-validator \
--new-moniker="" \
--details="" \
--commission-rate=0. \
--chain-id=shentu-2.2 \
--from= \
--gas-adjustment="1.4" \
--fees="5000uctk"shentud tx staking edit-validator \
--identity="" \
--details="" \
--commission-rate=0. \
--chain-id=shentu-2.2 \
--from= \
--gas-adjustment="1.4" \
--fees="5000uctk"shentud tx staking edit-validator \
--new-moniker="" \
--identity="" \
--details="" \
--commission-rate=0. \
--chain-id=shentu-2.2 \
--from= \
--gas-adjustment="1.4" \
--fees="5000uctk"shentud tx staking edit-validator \
--new-moniker="" \
--identity="" \
--details="" \
--website="" \
--security-contact= \
--chain-id=shentu-2.2 \
--commission-rate=0. \
--from= \
--gas-adjustment="1.4" \
--fees="5000uctk"
shentud status 2>&1 | jq .ValidatorInfo
shentud q staking validator $(shentud keys show --bech val -a)
shentud q slashing signing-info $(shentud tendermint show-validator)
shentud tx slashing unjail --broadcast-mode=block --from --chain-id shentu-2.2 --gas-adjustment="1.4" --fees="5000uctk"
shentud q staking validators -oj --limit=2000 | jq '.validators[] | select(.status=="BOND_STATUS_BONDED")' | jq -r '(.tokens|tonumber/pow(10; 6)|floor|tostring) + " " + .description.moniker' | sort -gr | nl
[[ $(shentud q staking validator $(shentud keys show --bech val -a) -oj | jq -r .consensus_pubkey.key) = $(shentud status | jq -r .ValidatorInfo.PubKey.value) ]] && echo -e "Your key status is ok" || echo -e "Your key status is error"
shentud q slashing signing-info $(shentud tendermint show-validator)
shentud tx distribution withdraw-all-rewards --from --chain-id shentu-2.2 --gas-adjustment="1.4" --fees="5000uctk"
shentud tx distribution withdraw-rewards $(shentud keys show --bech val -a) --commission --from --chain-id shentu-2.2 --gas-adjustment="1.4" --fees="5000uctk"
shentud tx staking delegate $(shentud keys show --bech val -a) 000000uctk --from --chain-id shentu-2.2 --gas-adjustment="1.4" --fees="5000uctk"
shentud tx staking redelegate $(shentud keys show --bech val -a) 000000uctk --from --chain-id shentu-2.2 --gas-adjustment="1.4" --fees="5000uctk"
shentud tx staking delegate 000000uctk --from --chain-id shentu-2.2 --gas-adjustment="1.4" --fees="5000uctk"
shentud tx staking unbond $(shentud keys show --bech val -a) 000000uctk --from --chain-id shentu-2.2 --gas-adjustment="1.4" --fees="5000uctk"
shentud tx bank send 000000uctk --from --chain-id shentu-2.2 --gas-adjustment="1.4" --fees="5000uctk"
shentud query gov proposal
shentud tx gov vote --from --chain-id shentu-2.2 --gas-adjustment="1.4" --fees="5000uctk"
CUSTOM_PORT=
sed -i.bak -e "s%^proxy_app = \"tcp://127.0.0.1:26658\"%proxy_app = \"tcp://127.0.0.1:${CUSTOM_PORT}658\"%; s%^laddr = \"tcp://127.0.0.1:26657\"%laddr = \"tcp://127.0.0.1:${CUSTOM_PORT}657\"%; s%^pprof_laddr = \"localhost:6060\"%pprof_laddr = \"localhost:${CUSTOM_PORT}060\"%; s%^laddr = \"tcp://0.0.0.0:26656\"%laddr = \"tcp://0.0.0.0:${CUSTOM_PORT}656\"%; s%^prometheus_listen_addr = \":26660\"%prometheus_listen_addr = \":${CUSTOM_PORT}660\"%" $HOME/.shentud/config/config.toml
sed -i.bak -e "s%^address = \"tcp://0.0.0.0:1317\"%address = \"tcp://0.0.0.0:${CUSTOM_PORT}317\"%; s%^address = \":8080\"%address = \":${CUSTOM_PORT}080\"%; s%^address = \"0.0.0.0:9090\"%address = \"0.0.0.0:${CUSTOM_PORT}090\"%; s%^address = \"0.0.0.0:9091\"%address = \"0.0.0.0:${CUSTOM_PORT}091\"% " $HOME/.shentud/config/app.toml
sed -i -e 's|^indexer *=.*|indexer = "kv"|' $HOME/.shentud/config/config.toml
sed -i -e 's|^indexer *=.*|indexer = "null"|' $HOME/.shentud/config/config.toml
shentud tendermint unsafe-reset-all --home $HOME/.shentud --keep-addr-book
sudo systemctl stop shentud && \
sudo systemctl disable shentud && \
rm /etc/systemd/system/shentud.service && \
sudo systemctl daemon-reload && \
cd $HOME && \
rm -rf .shentud && \
rm -rf $(which shentud)
wget -O $HOME/.shentud/config/genesis.json "https://snap.kynraze.com/shentu/genesis.json"
wget -O $HOME/.shentud/config/addrbook.json "https://snap.kynraze.com/shentu/addrbook.json"
PEERS=
sed -i -e "s|^persistent_peers *=.*|persistent_peers = "$PEERS"|" $HOME/.shentud/config/config.toml
Coming Soon
SHENTU
_NODENAME="
"
echo "export
SHENTU_NODENAME=$SHENTU_NODENAME" >> $HOME/.bash_profile
if [ ! $WALLET ]; then
echo "export WALLET=wallet" >> $HOME/.bash_profile
fi
echo "export
SHENTU_CHAIN_ID=shentu-2.2" >> $HOME/.bash_profile
source $HOME/.bash_profile
sudo apt update && sudo apt upgrade -y && sudo apt install curl tar wget clang pkg-config libssl-dev jq build-essential bsdmainutils git make ncdu gcc git jq chrony liblz4-tool -y
ver="
1.20"
cd $HOME
wget "https://golang.org/dl/go$ver.linux-amd64.tar.gz"
sudo rm -rf /usr/local/go
sudo tar -C /usr/local -xzf "go$ver.linux-amd64.tar.gz"
rm "go$ver.linux-amd64.tar.gz"
echo "export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin" >> ~/.bash_profile
source ~/.bash_profile
go version
git clone https://github.com/certikfoundation/shentu.git cd shentu git checkout v2.11.0 make install
shentud version
--long
CUSTOM_PORT=
sed -i.bak -e "s%^proxy_app = \"tcp://127.0.0.1:26658\"%proxy_app = \"tcp://127.0.0.1:${CUSTOM_PORT}658\"%; s%^laddr = \"tcp://127.0.0.1:26657\"%laddr = \"tcp://127.0.0.1:${CUSTOM_PORT}657\"%; s%^pprof_laddr = \"localhost:6060\"%pprof_laddr = \"localhost:${CUSTOM_PORT}060\"%; s%^laddr = \"tcp://0.0.0.0:26656\"%laddr = \"tcp://0.0.0.0:${CUSTOM_PORT}656\"%; s%^prometheus_listen_addr = \":26660\"%prometheus_listen_addr = \":${CUSTOM_PORT}660\"%"
$HOME/.shentud/config/config.tomlsed -i.bak -e "s%^address = \"tcp://0.0.0.0:1317\"%address = \"tcp://0.0.0.0:${CUSTOM_PORT}317\"%; s%^address = \":8080\"%address = \":${CUSTOM_PORT}080\"%; s%^address = \"0.0.0.0:9090\"%address = \"0.0.0.0:${CUSTOM_PORT}090\"%; s%^address = \"0.0.0.0:9091\"%address = \"0.0.0.0:${CUSTOM_PORT}091\"%
"
$HOME/.shentud/config/app.toml
shentud config chain-id $SHENTU_CHAIN_ID shentud config keyring-backend file shentud config node tcp://localhost:657
shentud init $SHENTU_NODENAME
--chain-id
$SHENTU_CHAIN_ID
wget -O $HOME/.shentud/config/genesis.json "https://snap.kynraze.com/shentu/genesis.json"
wget -O $HOME/.shentud/config/addrbook.json "https://snap.kynraze.com/shentu/addrbook.json"
PEERS="
"
sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" $HOME/
.shentud/config/config.tomlsed -i -e "s|^seeds *=.*|seeds = \"
\"|" $HOME/
.shentud/config/config.toml
pruning="custom"
pruning_keep_recent="100"
pruning_keep_every="0"
pruning_interval="10"
sed -i -e "s/^pruning *=.*/pruning = \"$pruning\"/" $HOME/
.shentud/config/app.tomlsed -i -e "s/^pruning-keep-recent *=.*/pruning-keep-recent = \"$pruning_keep_recent\"/" $HOME/
.shentud/config/app.tomlsed -i -e "s/^pruning-keep-every *=.*/pruning-keep-every = \"$pruning_keep_every\"/" $HOME/
.shentud/config/app.tomlsed -i -e "s/^pruning-interval *=.*/pruning-interval = \"$pruning_interval\"/" $HOME/
.shentud/config/app.toml
sudo tee /etc/systemd/system/
shentud.service > /dev/null << EOF
[Unit]
Description=
shentudAfter=network-online.target
[Service]
User=$USER
ExecStart=$(which
shentud)start --home $HOME/
.shentudRestart=on-failure
RestartSec=3
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
EOF
curl -o - -L
| lz4 -c -d - | tar -x -C $HOME/
.shentud
sudo systemctl daemon-reload
sudo systemctl enable
shentudsudo systemctl restart
shentudsudo journalctl -fu
shentud-o cat
# Update & install lz4(Required)
sudo apt install snapd lz4 -y
# Reset Chain Data
sed -i.bak -E "s|^(enable[[:space:]]+=[[:space:]]+).*$|\1false|" $HOME/.shentud/config/config.toml
sudo systemctl stop shentud
cp $HOME/.shentud/data/priv_validator_state.json $HOME/.shentud/priv_validator_state.json.backup
rm -rf $HOME/.shentud/data
# Download Data Snapshot
curl -o - -L | lz4 -c -d - | tar -x -C $HOME/.shentud
mv $HOME/.shentud/priv_validator_state.json.backup $HOME/.shentud/data/priv_validator_state.json
# Restart
sudo systemctl restart shentud
sudo journalctl -fu shentud -o cat
systemctl stop shentud
shentud tendermint unsafe-reset-all --home $HOME/.shentud --keep-addr-book
STATE_SYNC_RPC=""
LATEST_HEIGHT=$(curl -s $STATE_SYNC_RPC/block | jq -r .result.block.header.height) \
SYNC_BLOCK_HEIGHT=$(($LATEST_HEIGHT - 2000)) \
SYNC_BLOCK_HASH=$(curl -s "$STATE_SYNC_RPC/block?height=$SYNC_BLOCK_HEIGHT" | jq -r .result.block_id.hash)
echo $LATEST_HEIGHT $SYNC_BLOCK_HEIGHT $SYNC_BLOCK_HASH
PEERS=""
sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" $HOME/.shentud/config/config.toml
sed -i.bak -e "s|^enable *=.*|enable = true|" $HOME/.shentud/config/config.toml
sed -i.bak -e "s|^rpc_servers *=.*|rpc_servers = \"$STATE_SYNC_RPC,$STATE_SYNC_RPC\"|" \
$HOME/.shentud/config/config.toml
sed -i.bak -e "s|^trust_height *=.*|trust_height = $SYNC_BLOCK_HEIGHT|" \
$HOME/.shentud/config/config.toml
sed -i.bak -e "s|^trust_hash *=.*|trust_hash = \"$SYNC_BLOCK_HASH\"|" \
$HOME/.shentud/config/config.toml
systemctl restart shentud && journalctl -fu shentud -o cat