---
title: "Use the local chain"
description: "Check health, fund an address, read a transaction, and rewind the local Surfpool chain."
url: https://barestate.xyz/docs/guides/use-the-local-chain
---

# Use the local chain

> Check health, fund an address, read a transaction, and rewind the local Surfpool chain.

These commands let you look at and adjust the local Surfpool chain without going through the model. They run without a model turn, and the read-only ones work while the agent is running.

| Command | What it does |
|---|---|
| `/chain` | Shows RPC, slot, fork state and health |
| `/airdrop <address> [sol]` | Sends SOL to an address, up to 100 SOL |
| `/tx <signature>` | Shows status, error, compute and logs |
| `/account [address]` | With an address, shows a local chain account. Without one, shows your OMS account status |
| `/program <name\|id> [instruction]` | Looks up the offline program reference |
| `/rewind [confirm]` | Restarts the chain from its starting state |

## Rewind safely

```text
/rewind
/rewind confirm
```

`/rewind` restarts the chain from its starting state, or from the original snapshot, and `/rewind confirm` is the confirmed form. Anything you created on the chain since the start is gone afterwards, so rewind only when you are happy to lose it.

## Read-only while the agent runs

While the agent is running, these commands still work: `status`, `session`, `usage`, `diff`, `chain`, `account`, `tx`, `program` and `error`. Others wait or refuse.

## If the chain is not healthy

Run `/chain`. If health fails and OMS detects a crash, it restarts Surfpool from the latest checkpoint. Otherwise, run `npx @barestate/oms doctor` and check the Surfpool line. See [The local chain](https://barestate.xyz/docs/concepts/local-chain).
