Chain ID: tacchain_2391-1
| Node Version: v0.0.10
note
First You Need Set Variabels
MONIKER=<YOUR_MONIKER_NAME>
echo "export MONIKER=$MONIKER" >> $HOME/.bash_profile
echo "export TAC_CHAIN_ID="tacchain_2391-1"" >> $HOME/.bash_profile
source $HOME/.bash_profile
- Wallet
- Validator
- Token
- Service
- Governance
- Utility
- Delete
Wallet
Create Wallet
tacchaind keys add wallet
Recovery Wallet
tacchaind keys add wallet --recover
List All Wallet
tacchaind keys list
Delete Wallet
tacchaind keys delete wallet
Check Wallet Balance
tacchaind q bank balances $(tacchaind keys show wallet -a)
Validator
note
Make sure you have adjust YOUR_KEYBASE_ID, YOUR_DETAILS, YOUR_WEBSITE_URL
Create Validator
tacchaind tx staking create-validator \
--amount=1000000000000000000utac \
--pubkey=$(tacchaind tendermint show-validator) \
--moniker=$MONIKER \
--identity="YOUR_KEYBASE_ID" \
--details="YOUR_DETAILS" \
--website="YOUR_WEBSITE_URL" \
--chain-id=$TAC_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=100000000000utac
Edit Validator
tacchaind tx staking edit-validator \
--new-moniker="YOUR MONIKER" \
--identity="IDENTITY KEYBASE" \
--details="DETAILS VALIDATOR" \
--website="LINK WEBSITE" \
--chain-id=$TAC_CHAIN_ID \
--from=wallet \
--gas-adjustment=1.5 \
--gas="auto" \
--gas-prices=100000000000utac
Check Jailed Reason
tacchaind query slashing signing-info $(tacchaind tendermint show-validator)
Unjail Validator
tacchaind tx slashing unjail --from wallet --chain-id $TAC_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 100000000000utac -y
Token
Withdraw Rewards
tacchaind tx distribution withdraw-all-rewards --from wallet --chain-id $TAC_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 100000000000utac -y
Withdraw Rewards with Comission
tacchaind tx distribution withdraw-rewards $(tacchaind keys show wallet --bech val -a) --commission --from wallet --chain-id $TAC_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 100000000000utac -y
Delegate Tokens to Your Validator
tacchaind tx staking delegate $(tacchaind keys show wallet --bech val -a) 1000000000000000000utac --from wallet --chain-id $TAC_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 100000000000utac -y
Redelegate Tokens to Another Validator
tacchaind tx staking redelegate $(tacchaind keys show wallet --bech val -a) <TO_VALOPER_ADDRESS> 1000000000000000000utac --from wallet --chain-id $TAC_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 100000000000utac -y
Unbond Tokens from Your Validator
tacchaind tx staking unbond $(tacchaind keys show wallet --bech val -a) 1000000000000000000utac --from wallet --chain-id $TAC_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 100000000000utac -y
Send Tokens to Any Wallet
tacchaind tx bank send wallet <TO_WALLET_ADDRESS> 1000000000000000000utac --from wallet --chain-id $TAC_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 100000000000utac -y
Service
Reload Service
sudo systemctl daemon-reload
Enable Service
sudo systemctl enable tacchaind
Disable Service
sudo systemctl disable tacchaind
Start Service
sudo systemctl start tacchaind
Stop Service
sudo systemctl stop tacchaind
Restart Service
sudo systemctl restart tacchaind
Check Service Status
sudo systemctl status tacchaind
Check Service Logs
sudo journalctl -u tacchaind -f --no-hostname -o cat
Governance
tip
For Vote, You can change the value of yes to no, abstain, no_with_veto
Vote
tacchaind tx gov vote 1 yes --from wallet --chain-id $TAC_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 100000000000utac -y
List all Proposals
tacchaind query gov proposals
Check Vote
tacchaind tx gov vote PROPOSAL_NUMBER VOTE_OPTION --from wallet --chain-id $TAC_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 100000000000utac -y
Create new Proposal
tacchaind tx gov submit-proposal \
--title="Title" \
--description="Description" \
--deposit=10000000ulume \
--type="Text" \
--from=wallet \
--gas-adjustment 1.5 \
--gas "auto" \
--gas-prices=100000000000utac \
-y
Utility
Set Indexer null / kv
sed -i 's|^indexer *=.*|indexer = "null"|' $HOME/.tacchaind/config/config.toml
Get Validator Info
tacchaind status 2>&1 | jq .ValidatorInfo
Get Denom Info
tacchaind q bank denom-metadata -oj | jq
Get Sync Status
tacchaind status 2>&1 | jq .SyncInfo.catching_up
Get Latest Height
tacchaind status 2>&1 | jq .SyncInfo.latest_block_height
Get Node Peer
echo $(tacchaind tendermint show-node-id)'@'$(curl -s ifconfig.me)':'$(cat $HOME/.tacchaind/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 = \"100000000000utac\"/" $HOME/.tacchaind/config/app.toml
Enable Prometheus
sed -i 's|^prometheus *=.*|prometheus = true|' $HOME/.tacchaind/config/config.toml
Reset Chain Data
tacchaind tendermint unsafe-reset-all --home $HOME/.tacchaind --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 tacchaind && sudo systemctl disable tacchaind && sudo rm /etc/systemd/system/tacchaind.service && sudo systemctl daemon-reload && sudo rm -rf $(which tacchaind) && rm -rf $HOME/.tacchaind