> For the complete documentation index, see [llms.txt](https://docs.indonode.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.indonode.net/testnet/namada/command.md).

# Useful Commands

## Useful Commands

#### Generate New Key

```bash
namadaw gen --alias "${KEY_NAME}"
```

#### Recover Existing key

```bash
namadaw derive --alias "${KEY_NAME}"
```

#### Check Alias Address

```bash
namadaw find --alias "${KEY_NAME}"
```

#### List Keys

```bash
namadaw  list
```

#### Unjail Validator

```bash
namadac unjail-validator --validator  "<Validator address tham1...>"
```

#### Claim Rewards

```bash
namadac claim-rewards --validator "<Validator address tnam1...>"
```

#### Check Balance

```bash
namadac balance --owner "${KEY_NAME}"
```

#### Query TX

```bash
namadac tx-result --tx-hash <TX HASH> --node tcp://149.50.96.147:31657
```

#### Export Validator Key

```bash
namadac find-validator --tm-address=$(curl -s localhost:26657/status | jq -r .result.validator_info.address)
```

**Send Funds**

```bash
namadac  transfer --target <RECEIVER-KEY(tnam1..)> --source ${KEY_NAME} --amount 100 --token NAM 
```

#### Unbond Tokens

```bash
namadac unbond \
  --source wallet \
  --validator "${VAL_NAME}" \
  --amount 12.34
```

#### Check Validator Consensus

```bash
namadac validator-state --validator "<Validator address tham1...>"
```

### Service

#### Enable Service

```bash
sudo systemctl enable namadad.service
```

#### Disable Service

```bash
sudo systemctl disable namadad.service
```

#### Start Service

```bash
sudo systemctl start namadad.service
```

#### Stop Service

```bash
sudo systemctl stop namadad.service
```

#### Restart Service

```bash
sudo systemctl restart namadad.service
```

#### Check Service Status

```bash
sudo systemctl status namadad.service
```

#### Check Logs

```bash
sudo journalctl namadad.service -fu -o cat
```

#### Disable Indexer

```bash
sed -i -e 's|^indexer *=.*|indexer = "null"|' $HOME/.local/share/namada/shielded-expedition.b40d8e9055/config.toml
```

#### Enable Indexer

```bash
sed -i -e 's|^indexer *=.*|indexer = "kv"|' $HOME/.local/share/namada/shielded-expedition.b40d8e9055/config.toml
```

#### Reset Node

```bash
sudo systemctl stop namadad.service
namada node ledger reset
```

## Delete Node

```bash
sudo systemctl stop namadad.service
sudo systemctl disable namadad.service

sudo rm /etc/systemd/system/namadad.service
sudo systemctl daemon-reload

rm -f /usr/local/bin/namada* /usr/local/bin/cometbft
rm -rf $HOME/.local/share/namada
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.indonode.net/testnet/namada/command.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
