# 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
```


---

# 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://stavr-team.gitbook.io/nodes-guides/mainnets/canto/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.
