> For the complete documentation index, see [llms.txt](https://stavr-team.gitbook.io/nodes-guides/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://stavr-team.gitbook.io/nodes-guides/mainnets/canto/commands.md).

# Commands

## 📚Useful commands📚

## ⚙️Service

**Info**

```bash
cantod status 2>&1 | jq .NodeInfo
cantod status 2>&1 | jq .SyncInfo
cantod status 2>&1 | jq .ValidatorInfo
```

**Check node logs**

```bash
sudo journalctl -fu cantod -o cat
```

**Check service status**

```bash
sudo systemctl status cantod 
```

**Restart service**

```bash
sudo systemctl restart cantod 
```

**Stop service**

```bash
sudo systemctl stop cantod 
```

**Start service**

```bash
sudo systemctl start cantod 
```

**reload/disable/enable**

```bash
sudo systemctl daemon-reload
sudo systemctl disable cantod 
sudo systemctl enable cantod 
```

**Your Peer**

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

## 🥅Working with keys

**New Key or Recover Key**

```bash
cantod keys add Wallet_Name
      OR
cantod keys add Wallet_Name --recover
```

**Check all keys**

```python
cantod keys list
```

**Check Balance**

```bash
cantod query bank balances canto...addressjkl1yjgn7z09ua9vms259j
```

**Delete Key**

```python
cantod keys delete Wallet_Name
```

**Export Key**

```bash
cantod keys export wallet
```

**Import Key**

```bash
cantod keys import wallet wallet.backup
```

## 🚀Validator Management

**Edit Validator**

```python
cantod tx staking edit-validator \
--new-moniker "Your_Moniker" \
--identity "Keybase_ID" \
--details "Your_Description" \
--website "Your_Website" \
--security-contact "Your_Email" \
--chain-id canto_7700-1 \
--commission-rate 0.05 \
--from Wallet_Name \
--gas 350000 \
--fees 7000acanto -y
```

**Your Valoper-Address**

```bash
cantod keys show Wallet_Name --bech val
```

**Your Valcons-Address**

```bash
cantod tendermint show-address
```

**Your Validator-Info**

```bash
cantod query staking validator cantovaloperaddress......
```

**Jail Info**

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

**Unjail**

```python
cantod tx slashing unjail --from Wallet_name --chain-id canto_7700-1 --gas 350000 --fees 1000000"acanto" -y
```

## 📡IBC transfer

* for exapmle - Canto -> Osmosis

```python
cantod tx ibc-transfer transfer transfer channel-2 Your_OSMOaddress............ "100000"acanto --from Your_Canto_Wallet_Name ---gas 350000 --fees "7000"acanto --chain-id=canto_7700-1 -y
```
