# Useful commands

```bash
# Set Vars
MONIKER=<YOUR_MONIKER_NAME_GOES_HERE>
echo "export MONIKER=$MONIKER" >> $HOME/.bash_profile
echo "export ARKEO_CHAIN_ID="arkeo"" >> $HOME/.bash_profile
source $HOME/.bash_profile
```

### WALLET MANAGEMENT

{% hint style="info" %}
*Add Wallet Specify the value \<wallet> with your own wallet name*
{% endhint %}

```bash
#Create Wallet
arkeod keys add wallet

#Recover Wallet
arkeod keys add wallet --recover

#List Wallet
arkeod keys list

#Delete Wallet
arkeod keys delete wallet

#Check Wallet Balance
arkeod q bank balances $(arkeod keys show wallet -a)
```

### VALIDATOR MANAGEMENT

{% hint style="info" %}
*Please adjust , MONIKER , YOUR\_KEYBASE\_ID , YOUR\_DETAILS , YOUR\_WEBSITE\_URL*
{% endhint %}

```bash
#Create Validator
arkeod tx staking create-validator \
--amount=10000000uarkeo \
--pubkey=$(arkeod tendermint show-validator) \
--moniker=$MONIKER \
--identity="YOUR_KEYBASE_ID" \
--details="YOUR_DETAILS" \
--website="YOUR_WEBSITE_URL" \
--chain-id=$ARKEO_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=10uarkeo \
-y

#Edit Validator
arkeod tx staking edit-validator \
--new-moniker="YOUR MONIKER" \
--identity="IDENTITY KEYBASE" \
--details="DETAILS VALIDATOR" \
--website="LINK WEBSITE" \
--chain-id=$ARKEO_CHAIN_ID \
--from=wallet \
--gas-adjustment 1.5 \
--gas="auto" \
--gas-prices=10uarkeo \
-y

#Unjail Validator
arkeod tx slashing unjail --from wallet --chain-id $ARKEO_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 10uarkeo -y

#Check Jailed Reason
arkeod query slashing signing-info $(arkeod tendermint show-validator)
```

### TOKEN MANAGEMENT

```bash
#Withdraw Rewards
arkeod tx distribution withdraw-all-rewards --from wallet --chain-id $ARKEO_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 10uarkeo -y

#Withdraw Rewards with Comission
arkeod tx distribution withdraw-rewards $(arkeod keys show wallet --bech val -a) --commission --from wallet --chain-id $ARKEO_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 10uarkeo -y

#Delegate Token to your own validator
arkeod tx staking delegate $(arkeod keys show wallet --bech val -a) 1000000uarkeo --from wallet --chain-id $ARKEO_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 10uarkeo -y

#Delegate Token to other validator
arkeod tx staking redelegate $(arkeod keys show wallet --bech val -a) <TO_VALOPER_ADDRESS> 1000000uarkeo --from wallet --chain-id $ARKEO_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 10uarkeo -y

#Unbond Token from your validator
arkeod tx staking unbond $(arkeod keys show wallet --bech val -a) 1000000uarkeo --from wallet --chain-id $ARKEO_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 10uarkeo -y

#Send Token to another wallet
arkeod tx bank send wallet <TO_WALLET_ADDRESS> 1000000uarkeo --from wallet --chain-id $ARKEO_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 10uarkeo -y
```

### GOVERNANCE

```bash
#Vote You can change the value of yes to no,abstain,nowithveto
arkeod tx gov vote 1 yes --from wallet --chain-id $ARKEO_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 10uarkeo -y

#List all proposals
arkeod query gov proposals

#Create new text proposal
arkeod tx gov submit-proposal \
--title="Title" \
--description="Description" \
--deposit=100000000uarkeo \
--type="Text" \
--from=wallet \
--gas-prices=10uarkeo\ 
--gas-adjustment=1.5 \
--gas="auto" \
-y 

```

### SERVICES MANAGEMENT

```bash
# Reload Service
sudo systemctl daemon-reload

# Enable Service
sudo systemctl enable arkeod

# Disable Service
sudo systemctl disable arkeod

# Start Service
sudo systemctl start arkeod

# Stop Service
sudo systemctl stop arkeod

# Restart Service
sudo systemctl restart arkeod

# Check Service Status
sudo systemctl status arkeod

# Check Service Logs
sudo journalctl -u arkeod -f --no-hostname -o cat
```

### UTILITY

```bash
#Set Indexer NULL / KV
sed -i 's|^indexer *=.*|indexer = "null"|' $HOME/.arkeod/config/config.toml

#Get Validator info
arkeod status 2>&1 | jq .ValidatorInfo

#Get denom info
arkeod q bank denom-metadata -oj | jq

#Get sync status
arkeod status 2>&1 | jq .SyncInfo.catching_up

#Get latest height
arkeod status 2>&1 | jq .SyncInfo.latest_block_height

#Reset Node
arkeod tendermint unsafe-reset-all --home $HOME/.arkeod --keep-addr-book
```

### DELETE NODE

{% hint style="warning" %} <mark style="color:red;">**WARNING! Use this command wisely Backup your key first it will remove node from your system**</mark>
{% endhint %}

```bash
sudo systemctl stop arkeod && sudo systemctl disable arkeod && sudo rm /etc/systemd/system/arkeod.service && sudo systemctl daemon-reload && sudo rm -rf $(which arkeod) && rm -rf $HOME/.arkeo && rm -rf $HOME/arkeod
```
