# Useful commands

### Service operations ⚙️ <a href="#service-operations" id="service-operations"></a>

Check logs

```bash
sudo journalctl -u titand -f
```

Start service

```bash
sudo systemctl start titand
```

Stop service

```bash
sudo systemctl stop titand
```

Restart service

```bash
sudo systemctl restart titand
```

Check service status

```bash
sudo systemctl status titand
```

Reload services

```bash
sudo systemctl daemon-reload
```

Enable Service

```bash
sudo systemctl enable titand
```

Disable Service

```bash
sudo systemctl disable titand
```

Sync info

```bash
titand status 2>&1 | jq .SyncInfo
```

Node info

```bash
titand status 2>&1 | jq .NodeInfo
```

Your node peer

```bash
echo $(titand tendermint show-node-id)'@'$(wget -qO- eth0.me)':'$(cat $HOME/.titan/config/config.toml | sed -n '/Address to listen for incoming connection/{n;p;}' | sed 's/.*://; s/".*//')
```

### Key management <a href="#key-management" id="key-management"></a>

Add New Wallet

```bash
titand keys add $WALLET
```

Restore executing wallet

```bash
titand keys add $WALLET --recover
```

List All Wallets

```bash
titand keys list
```

Delete wallet

```bash
titand keys delete $WALLET
```

Check Balance

```bash
titand q bank balances $(titand keys show $WALLET -a)
```

Export Key (save to wallet.backup)

```bash
titand keys export $WALLET
```

View EVM Prived Key

```bash
titand keys unsafe-export-eth-key $WALLET
```

Import Key (restore from wallet.backup)

```bash
titand keys import $WALLET wallet.backup
```

### Tokens <a href="#tokens" id="tokens"></a>

To valoper addressTo wallet addressAmount, uttnt

Withdraw all rewards

```bash
titand tx distribution withdraw-all-rewards --from $WALLET --chain-id titan-test-4 --gas 300000 --fees 2000uttnt
```

Withdraw rewards and commission from your validator

```bash
titand tx distribution withdraw-rewards $VALOPER_ADDRESS_titan --from $WALLET --commission --chain-id titan-test-4 --gas 300000 --fees 2000uttnt -y
```

Check your balance

```bash
titand query bank balances $WALLET_ADDRESS_titan
```

Delegate to Yourself

```bash
titand tx staking delegate $(titand keys show $WALLET --bech val -a) 1000000uttnt --from $WALLET --chain-id titan-test-4 --gas 300000 --fees 2000uttnt -y
```

Delegate

```bash
titand tx staking delegate <TO_VALOPER_ADDRESS> 1000000uttnt --from $WALLET --chain-id titan-test-4 --gas 300000 --fees 2000uttnt -y
```

Redelegate Stake to Another Validator

```bash
titand tx staking redelegate $VALOPER_ADDRESS_titan <TO_VALOPER_ADDRESS> 1000000uttnt --from $WALLET --chain-id titan-test-4 --gas 300000 --fees 2000uttnt -y
```

Unbond

```bash
titand tx staking unbond $(titand keys show $WALLET --bech val -a) 1000000uttnt --from $WALLET --chain-id titan-test-4 --gas 300000 --fees 2000uttnt -y
```

Transfer Funds

```bash
titand tx bank send $WALLET_ADDRESS_titan <TO_WALLET_ADDRESS> 1000000uttnt --gas 300000 --fees 2000uttnt -y
```

### Validator operations <a href="#validator-operations" id="validator-operations"></a>

MonikerIdentityDetailsAmount, uttntCommission rateCommission max rateCommission max change rate

Create New Validator

```bash
titand tx staking create-validator \
--amount 1000000uttnt \
--from $WALLET \
--commission-rate 0.1 \
--commission-max-rate 0.2 \
--commission-max-change-rate 0.01 \
--min-self-delegation 1 \
--pubkey $(titand tendermint show-validator) \
--moniker "$MONIKER" \
--identity "" \
--details "I love blockchain 💚" \
--chain-id titan-test-4 \
--gas 300000 --fees 2000uttnt \
-y
```

Edit Existing Validator

```bash
titand tx staking edit-validator \
--commission-rate 0.1 \
--new-moniker "$MONIKER" \
--identity "" \
--details "I love blockchain 💚" \
--from $WALLET \
--chain-id titan-test-4 \
--gas 300000 --fees 2000uttnt \
-y
```

Validator info

```bash
titand status 2>&1 | jq .ValidatorInfo
```

Validator Details

```bash
titand q staking validator $(titand keys show $WALLET --bech val -a)
```

Jailing info

```bash
titand q slashing signing-info $(titand tendermint show-validator)
```

Slashing parameters

```bash
titand q slashing params
```

Unjail validator

```bash
titand tx slashing unjail --from $WALLET --chain-id titan-test-4 --gas 300000 --fees 2000uttnt -y
```

Active Validators List

```bash
titand 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
```

Check Validator key

```bash
[[ $(titand q staking validator $VALOPER_ADDRESS_titan -oj | jq -r .consensus_pubkey.key) = $(titand status | jq -r .ValidatorInfo.PubKey.value) ]] && echo -e "Your key status is ok" || echo -e "Your key status is error"
```

Signing info

```bash
titand q slashing signing-info $(titand tendermint show-validator)
```

### Governance <a href="#governance" id="governance"></a>

TitleDescriptionDeposit, uttnt

Create New Text Proposal

```bash
titand  tx gov submit-proposal \
--title "" \
--description "" \
--deposit 1000000uttnt \
--type Text \
--from $WALLET \
--gas 300000 --fees 2000uttnt \
-y 
```

Proposals List

```bash
titand query gov proposals
```

Proposal IDProposal optionYesNoNo with vetoAbstain

View proposal

```bash
titand query gov proposal 1
```

Vote

```bash
titand tx gov vote 1 yes --from $WALLET --chain-id titan-test-4  --gas 300000 --fees 2000uttnt -y
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://monkeylabs.gitbook.io/services/services-testnet/titan-network/useful-commands.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
