Node CLI Cheatsheet
CLI Cheatsheet
- Always be careful with the capitalized words
- Specify
--chain-id
Usefull Command
tacchaind status 2>&1 | jq .sync_info
Wallet Management
Add Wallet Specify the value <wallet>
with your own wallet name
tacchaind keys add wallet
Export PK to EVM
tacchaind keys export wallet --unarmored-hex --unsafe
Recover Wallet
tacchaind keys add wallet --recover
List Wallet
tacchaind keys list
Delete Wallet
tacchaind keys delete wallet
Check Wallet Balance
tacchaind q bank balances $(tacchaind keys show wallet -a)
Validator Management
Please adjust <wallet>
, MONIKER
, YOUR_KEYBASE_ID
, YOUR_DETAILS
, YOUUR_WEBSITE_URL
Create Validator (Staking)
- Check Your Pubkey
tacchaind tendermint show-validator
- Make File validator.json
nano $HOME/.tacchaind/validator.json
{
"pubkey": ,
"amount": "5000000000000000000utac",
"moniker": "",
"identity": "",
"website": "",
"security": "",
"details": "",
"commission-rate": "0.05",
"commission-max-rate": "0.2",
"commission-max-change-rate": "0.05",
"min-self-delegation": "1"
}
tacchaind tx staking create-validator $HOME/.tacchaind/validator.json \
--from wallet \
--chain-id tacchain_239-1 \
--gas-prices=25000000000utac \
--gas-adjustment=1.2 \
--gas=auto
Unjail Validator
tacchaind tx slashing unjail --from wallet --chain-id tacchain_239-1 --gas-prices=25000000000utac --gas-adjustment=1.2 --gas=auto
Check Jailed Reason
tacchaind query slashing signing-info $(tacchaind tendermint show-validator)
Token Management
Withdraw Rewards
tacchaind tx distribution withdraw-all-rewards --from wallet --chain-id tacchain_239-1 --gas-prices=25000000000utac --gas-adjustment=1.2 --gas=auto
Withdraw Rewards with Comission
tacchaind tx distribution withdraw-rewards $(tacchaind keys show wallet --bech val -a) --commission --from wallet --chain-id tacchain_239-1 --gas-prices=25000000000utac --gas-adjustment=1.2 --gas=auto
Delegate Token to your own validator
tacchaind tx staking delegate $(tacchaind keys show wallet --bech val -a) 1000000000000000000utac --from wallet --chain-id tacchain_239-1 --gas-prices=25000000000utac --gas-adjustment=1.2 --gas=auto
Delegate Token to other validator
tacchaind staking redelegate $(tacchaind keys show wallet --bech val -a) <TO_VALOPER_ADDRESS> 1000000000000000000utac --from wallet --chain-id tacchain_239-1 --gas-prices=25000000000utac --gas-adjustment=1.2 --gas=auto
Unbond Token from your validator
tacchaind tx staking unbond $(tacchaind keys show wallet --bech val -a) 1000000000000000000 --from wallet --chain-id tacchain_239-1 --gas-prices=25000000000utac --gas-adjustment=1.2 --gas=auto
Send Token to another wallet
tacchaind tx bank send wallet <TO_WALLET_ADDRESS> 1000000000000000000utac --from wallet --chain-id tacchain_239-1 --gas-prices=25000000000utac --gas-adjustment=1.2 --gas=auto
Other
Set Your own Custom Ports
PORT=113
sed -i -e "s%:26657%:${PORT}57%" $HOME/.tacchaind/config/client.toml
sed -i -e "s%:26658%:${PORT}58%; s%:26657%:${PORT}57%; s%:6060%:${PORT}60%; s%:26656%:${PORT}56%; s%:26660%:${PORT}60%" $HOME/.tacchaind/config/config.toml
sed -i -e "s%:1317%:${PORT}17%; s%:9090%:${PORT}90%; s%:8545%:${PORT}45%; s%:8546%:${PORT}46%; s%:6065%:${PORT}65%" $HOME/.tacchaind/config/app.toml
Enable Indexing usually enabled by default
sed -i 's|^indexer *=.*|indexer = "kv"|' $HOME/.tacchaind/config/config.toml
Disable Indexing
sed -i 's|^indexer *=.*|indexer = "null"|' $HOME/.tacchaind/config/config.toml
Reset Chain Data
tacchaind tendermint unsafe-reset-all --home $HOME/.tacchaind --keep-addr-book
Delete Node
WARNING! Use this command wisely Backup your key first it will remove Defund from your system
sudo systemctl stop tacchainbd
sudo systemctl disable tacchaind
sudo rm /etc/systemd/system/tacchaind.service
sudo systemctl daemon-reload
rm -f $(which tacchaind)
rm -rf .tacchaind
rm -rf tacchain