Sandbox Management
Create, list, delete, and explore supported networks
Manage BuildBear sandboxes — create forks of live networks, list existing sandboxes, delete them, and browse supported networks.
sandbox create
Create a new sandbox that forks a supported network.
Options:
| Flag | Type | Default | Description |
|---|---|---|---|
--network <chainId> | string | — | Chain ID of the network to fork (e.g. 1 for Ethereum, 10 for Optimism). Run buildbear sandbox networks to see all chain IDs |
--fork-block <blockNumber> | string | latest | Block number to fork from |
--chain-id <customChainId> | string | — | Override the chain ID inside the sandbox |
--prefund <addresses> | string | — | Comma-separated wallet addresses to pre-fund |
--name <label> | string | — | Human-readable name for the sandbox |
--json | flag | — | Output as JSON |
--quiet | flag | — | Suppress output except errors |
Example — fork Ethereum mainnet:
Example — fork at a specific block and pre-fund an address:
Example — JSON output for scripting:
[!NOTE] The
mnemonicin the JSON output is a fresh test mnemonic for the sandbox — it is not a real wallet. Do not send real funds to addresses derived from it.
sandbox list
List all your sandboxes.
Options:
| Flag | Type | Description |
|---|---|---|
--status <status> | string | Filter by status: live, dead, or pending |
--limit <n> | number | Maximum number of results to show |
--filter <pattern> | string | Case-insensitive substring match against sandbox name or ID |
--json | flag | Output as JSON |
--quiet | flag | Suppress output except errors |
Example:
sandbox delete
Permanently destroy a sandbox by its RPC URL.
Arguments:
| Argument | Required | Description |
|---|---|---|
rpcUrl | Yes | Full BuildBear RPC URL (e.g. https://rpc.buildbear.io/abc123) |
Options:
| Flag | Description |
|---|---|
--json | Output as JSON |
--quiet | Suppress output except errors |
Example:
[!WARNING] Deletion is permanent. All sandbox state, snapshots, and funded balances will be lost.
sandbox networks
List all networks that can be forked.
Options:
| Flag | Description |
|---|---|
--json | Output as JSON |
--quiet | Suppress output except errors |
Example output:
Use the Chain ID column value with --network when creating a sandbox.