> For the complete documentation index, see [llms.txt](https://skyneticlabs.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://skyneticlabs.gitbook.io/docs/services/testnet-networks/arkeo/useful-commands.md).

# Useful commands

#### Add new key

```bash
arkeod keys add wallet
```

#### Recover existing key

```bash
arkeod keys add wallet --recover
```

#### List all keys

```bash
arkeod keys list
```

#### Delete key

```bash
arkeod keys delete wallet
```

#### Query wallet balance

```bash
arkeod q bank balances $(arkeod keys show wallet -a)
```

#### Create new validator

```bash
arkeod tx staking create-validator \
--amount 1000000uarkeo \
--pubkey $(arkeod tendermint show-validator) \
--moniker "YOUR_MONIKER_NAME" \
--identity "YOUR_KEYBASE_ID" \
--details "YOUR_DETAILS" \
--website "YOUR_WEBSITE_URL" \
--chain-id arkeo-testnet-4 \
--commission-rate 0.05 \
--commission-max-rate 0.20 \
--commission-max-change-rate 0.01 \
--min-self-delegation 1 \
--from wallet \
--gas-adjustment 1.4 \
--gas auto \
--gas-prices 0.001uarkeo \
-y
```

#### Edit validator

```bash
arkeod tx staking edit-validator \
--new-moniker "YOUR_MONIKER_NAME" \
--identity "YOUR_KEYBASE_ID" \
--details "YOUR_DETAILS" \
--website "YOUR_WEBSITE_URL" \
--chain-id arkeo-testnet-4 \
--commission-rate 0.05 \
--from wallet \
--gas-adjustment 1.4 \
--gas auto \
--gas-prices 0.001uarkeo \
-y
```

#### Unjail validator

```bash
arkeod tx slashing unjail --from wallet --chain-id arkeo-testnet-4 --gas-adjustment 1.4 --gas auto --gas-prices 0.001uarkeo -y
```

#### Jail reason

```bash
arkeod query slashing signing-info $(arkeod tendermint show-validator)
```

#### List all active validators

```bash
arkeod q staking validators -oj --limit=3000 | jq '.validators[] | select(.status=="BOND_STATUS_BONDED")' | jq -r '(.tokens|tonumber/pow(10; 6)|floor|tostring) + " \t " + .description.moniker' | sort -gr | nl
```

#### List all inactive validators

```bash
arkeod q staking validators -oj --limit=3000 | jq '.validators[] | select(.status=="BOND_STATUS_UNBONDED")' | jq -r '(.tokens|tonumber/pow(10; 6)|floor|tostring) + " \t " + .description.moniker' | sort -gr | nl
```

#### Withdraw rewards from all validators

```bash
arkeod tx distribution withdraw-all-rewards --from wallet --chain-id arkeo-testnet-4 --gas-adjustment 1.4 --gas auto --gas-prices 0.001uarkeo -y
```

#### Withdraw commission and rewards from your validator

```bash
arkeod tx distribution withdraw-rewards $(arkeod keys show wallet --bech val -a) --commission --from wallet --chain-id arkeo-testnet-4 --gas-adjustment 1.4 --gas auto --gas-prices 0.001uarkeo -y
```

#### Delegate to yourself

```bash
arkeod tx staking delegate $(arkeod keys show wallet --bech val -a) 1000000uarkeo --from wallet --chain-id arkeo-testnet-4 --gas-adjustment 1.4 --gas auto --gas-prices 0.001uarkeo -y
```

#### Delegate tokens to validator

```bash
arkeod tx staking delegate <TO_VALOPER_ADDRESS> 1000000uarkeo --from wallet --chain-id arkeo-testnet-4 --gas-adjustment 1.4 --gas auto --gas-prices 0.001uarkeo -y
```

#### Redelegate tokens to another validator

```bash
arkeod tx staking redelegate $(arkeod keys show wallet --bech val -a) <TO_VALOPER_ADDRESS> 1000000uarkeo --from wallet --chain-id arkeo-testnet-4 --gas-adjustment 1.4 --gas auto --gas-prices 0.001uarkeo -y
```

#### Unbond tokens from your validator

```bash
arkeod tx staking unbond $(arkeod keys show wallet --bech val -a) 1000000uarkeo --from wallet --chain-id arkeo-testnet-4 --gas-adjustment 1.4 --gas auto --gas-prices 0.001uarkeo -y
```

#### Send tokens to the wallet

```bash
arkeod tx bank send wallet <TO_WALLET_ADDRESS> 1000000uarkeo --from wallet --chain-id arkeo-testnet-4 --gas-adjustment 1.4 --gas auto --gas-prices 0.001uarkeo -y
```

#### View validator details

```bash
arkeod q staking validator $(arkeod keys show wallet --bech val -a)
```

#### Slashing params

```bash
arkeod q slashing params
```

#### Signing Info

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

#### Get validator info

```bash
arkeod status 2>&1 | jq .validator_info
```

#### Get sync info

```bash
arkeod status 2>&1 | jq .sync_info
```

#### Check validator key

```bash
[[ $(arkeod q staking validator $(arkeod keys show wallet --bech val -a) -oj | jq -r .consensus_pubkey.key) = $(arkeod status | jq -r .ValidatorInfo.PubKey.value) ]] && echo -e "\n\e[1m\e[32mTrue\e[0m\n" || echo -e "\n\e[1m\e[31mFalse\e[0m\n"
```

#### Active Validators List

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

#### Governance

```bash
arkeod tx gov vote 1 yes --from wallet --chain-id arkeo-testnet-4 --gas-prices 0.001uarkeo --gas-adjustment 1.5 --gas auto -y
```

#### Remove node

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

#### Reload service configuration

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

#### Enable service

```bash
sudo systemctl enable arkeod
```

#### Disable service

```bash
sudo systemctl disable arkeod
```

#### Start service

```bash
sudo systemctl start arkeod
```

#### Stop service

```bash
sudo systemctl stop arkeod
```

#### Restart service

```bash
sudo systemctl restart arkeod
```

#### Check service status

```bash
sudo systemctl status arkeod
```

#### Check service logs

```bash
sudo journalctl -u arkeod -f --no-hostname -o cat
```

[**Install**](https://stakevillage.net/en/arkeo-testnet/index.php)\
\
[**Endpoint**](https://stakevillage.net/en/arkeo-testnet/endpoint.php)\
\
[**Sync**](https://stakevillage.net/en/arkeo-testnet/sync.php)\
\
[**Useful commands**](https://stakevillage.net/en/arkeo-testnet/useful-commands.php)

***

**Our Channel for support:**

[![](https://stakevillage.net/assets/images/social/telegram.png) @stakevillage](tg://resolve?domain=stakevillage)

**Check Nodes Bot:**

[![](https://stakevillage.net/assets/images/social/telegram.png) @stakeVillage\_check\_nodes\_bot ![Missed blocks](https://stakevillage.net/assets/images/missed_blocks.png)](tg://resolve?domain=stakeVillage_check_nodes_bot)<br>
