-
Notifications
You must be signed in to change notification settings - Fork 2
/
stratos_help.sh
22 lines (22 loc) · 3.49 KB
/
stratos_help.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
echo -e '\e[0m\e[31m=============== \e[0m\e[32mCommands that will make your job easier. Please note..\e[0m\e[31m===================\e[0m'
echo -e '\e[0m\e[36mcheck LOGS:\t\t\t\t \e[0m\e[32mjournalctl -ujournalctl -u stchaind -f -o cat\e[0m'
echo -e '\e[0m\e[36msend stos token to other address:\t \e[0m\e[32mstchaind tx bank send \033[33;4m<WalletName> <ToAddress> <amount>\e[0m\e[32m000000ustos -y\e[0m'
echo -e '\e[0m\e[36mCheck BALANCE:\t\t\t\t \e[0m\e[32mstchaind query bank balances \033[33;4m<Address>\e[0m\e[32m -o│json | jq -r .balances[0].amount\e[0m'
echo -e '\e[0m\e[36mLearn MONIKER NAME:\t\t\t \e[0m\e[32mstchaind status 2>&1 | jq -r .NodeInfo.moniker\e[0m'
echo -e '\e[0m\e[36msync info command:\t\t\t \e[0m\e[32mstchaind status 2>&1 | jq .SyncInfo\e[0m'
echo -e '\e[0m\e[36mwallet list:\t\t\t\t \e[0m\e[32mstchaind keys list\e[0m'
echo -e '\e[0m\e[36mvalidator info command:\t\t\t \e[0m\e[32mstchaind status 2>&1 | jq .ValidatorInfo\e[0m'
echo -e '\e[0m\e[36mNode info command:\t\t\t \e[0m\e[32mstchaind status 2>&1 | jq .NodeInfo\e[0m'
echo -e '\e[0m\e[36mShow node id:\t\t\t\t \e[0m\e[32mstchaind tendermint show-node-id\e[0m'
echo -e '\e[0m\e[36mWallet import/recover from mnemonic:\t \e[0m\e[32mstchaind keys add \033[33;4m<wallet name>\e[0m\e[32m --recover\e[0m'
echo -e '\e[0m\e[36mstchaind binary path:\t\t\t \e[0m\e[32mtype stchaind\e[0m'
echo -e '\e[0m\e[36mWallet name info:\t\t\t \e[0m\e[32mstchaind keys list --output json | jq .[0].name\e[0m'
echo -e '\e[0m\e[36mstratos testnet address info:\t\t \e[0m\e[32mstchaind keys list --output json | jq .[0].address\e[0m'
echo -e '\e[0m\e[36mstratos testnet pubkey info:\t\t \e[0m\e[32mstchaind keys list --output json | jq .[0].pubkey\e[0m'
echo -e '\e[0m\e[36mstaking delegate:\t\t\t \e[0m\e[32mstchaind tx staking delegate \033[33;4m<ValoperAddress>\e[0m\e[32m \033[33;4m<amount>\e[0m\e[32m000000ustos --from \033[33;4m<wallet_name>\e[0m\e[32m --chain-id \033[33;4m<chain_id>\e[0m\e[32m --gas auto\e[0m'
echo -e '\e[0m\e[36mstaking redelegate:\t\t\t \e[0m\e[32mstchaind tx staking redelegate \033[33;4m<srcValidatorAddress> <destValidatorAddress>\e[0m\e[32m \033[33;4m<amount>\e[0m\e[32m000000ustos --from \033[33;4m<wallet_name>\e[0m\e[32m --chain-id\033[33;4m<chain_id>\e[0m\e[32m --gas auto\e[0m'
echo -e '\e[0m\e[36mwithdraw all rewards:\t\t\t \e[0m\e[32mstchaind tx distribution withdraw-all-rewards --from \033[33;4m<wallet_name>\e[0m\e[32m --chain-id \033[33;4m<chain_id>\e[0m\e[32m --gas auto\e[0m'
echo -e '\e[0m\e[36mWithdraw rewards with commision:\t \e[0m\e[32mstchaind tx distribution withdraw-rewards \033[33;4m<ValidatorAddress>\e[0m\e[32m --from \033[33;4m<wallet_name>\e[0m\e[32m --commission --chain-id \033[33;4m<chain_id>\e[0m'
echo -e '\e[0m\e[36mEdit validator:\t\t\t\t \e[0m\e[32mstchaind tx staking edit-validator --moniker \033[33;4m<moniker_name>\e[0m\e[32m --website \033[33;4m<your_website>\e[0m\e[32m --details \033[33;4m<your_validator_description>\e[0m\e[32m --chain-id \033[33;4m<chain_id>\e[0m\e[32m --from \033[33;4m<wallet_name>\e[0m'
echo -e '\e[0m\e[36mUnjail validator:\t\t\t \e[0m\e[32mstchaind tx slashing unjail --broadcast-mode block --from \033[33;4m<wallet_name>\e[0m\e[32m --chain-id \033[33;4m<chain_id>\e[0m\e[32m --gas auto\e[0m'
echo -e '\e[0m\e[36mVote proposals:\t\t\t\t \e[0m\e[32mstchaind tx gov vote \033[33;4mX\e[0m\e[32m yes --from \033[33;4m<wallet_name>\e[0m\e[32m --chain-id \033[33;4m<chain_id>\n\t\t\t\t\t\t\t ┕━\033[33;4mX\e[0m\e[32m proposal id, check here \033[33;4mhttps://explorer-tropos.thestratos.org/proposals\e[0m'