> For the complete documentation index, see [llms.txt](https://service.block-pro.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://service.block-pro.net/mainnet/monad/useful-commands.md).

# Useful Commands

Monad service, RPC and storage commands.

**Mainnet · systemd and JSON-RPC**

## Service operations

### Status

Inspect all node services.

```bash
sudo systemctl status monad-bft monad-execution monad-rpc --no-pager -l
```

### Consensus logs

Follow consensus activity.

```bash
sudo journalctl -u monad-bft -f -o cat
```

### Execution logs

Inspect state execution.

```bash
sudo journalctl -u monad-execution -f -o cat
```

### Stop

Stop the three node services.

```bash
sudo systemctl stop monad-bft monad-execution monad-rpc
```

### Start

Start the services.

```bash
sudo systemctl start monad-bft monad-execution monad-rpc
```

### Version

Show the RPC release tag.

```bash
monad-rpc -V
```

### Package hold

Confirm consensus version pinning.

```bash
apt-mark showhold
```

## RPC checks

### Chain ID

Expected result: 0x8f.

```bash
curl -fsS http://127.0.0.1:8080/ -H 'Content-Type: application/json' \
  --data '{"jsonrpc":"2.0","method":"eth_chainId","params":[],"id":1}' | jq
```

### Block height

Repeat to verify blocks advance.

```bash
curl -fsS http://127.0.0.1:8080/ -H 'Content-Type: application/json' \
  --data '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}' | jq
```

### Client version

Read the running RPC implementation version.

```bash
curl -fsS http://127.0.0.1:8080/ -H 'Content-Type: application/json' \
  --data '{"jsonrpc":"2.0","method":"web3_clientVersion","params":[],"id":1}' | jq
```

## Storage and cleanup

### TrieDB usage

Inspect raw database utilization and timelines.

```bash
sudo monad-mpt --storage /dev/triedb
```

### Filesystem usage

Check the OS and ledger disk.

```bash
df -h /home/monad
```

### Cleanup timer

Check the package’s artifact cleanup schedule.

```bash
systemctl status monad-cruft.timer --no-pager
```

## Validator operations

Open the official staking CLI from its configured environment for delegation, commission, withdrawal and validator queries. Verify Mainnet and your validator ID before signing.

```bash
python staking-cli/main.py tui
```

[Operations reference](https://docs.monad.xyz/node-ops/general-operations).
