<!-- 0Gkit docs — 0gkit-devnet
     Source: https://docs.0gkit.com/packages/0gkit-devnet
     LLM-friendly Markdown twin of the page. -->

# 0gkit-devnet

Local 0G devnet harness used by `0g dev`.

## Install

```bash
pnpm add @foundryprotocol/0gkit-devnet
```

## Exports

- `AnvilNotInstalledError`
- `DEFAULT_DEV_MNEMONIC`
- `VERSION`
- `clearState`
- `deriveAccounts`
- `detectAnvil`
- `isRunning`
- `readState`
- `spawnAnvil`
- `startComputeMock`
- `startDaMock`
- `startDevnet`
- `startStorageMock`
- `stopDevnet`
- `type AnvilProcess`
- `type AnvilSpawnOptions`
- `type ComputeMockHandle`
- `type ComputeMockMode`
- `type DaMockHandle`
- `type DevAccount`
- `type DevnetChainService`
- `type DevnetHandle`
- `type DevnetService`
- `type DevnetStartOptions`
- `type DevnetState`
- `type StorageMockHandle`
- `writeState`

See the package README and source in
[`packages/0gkit-devnet/`](https://github.com/rajkaria/0gkit/tree/main/packages/0gkit-devnet)
for usage examples.
