Skip to main content
Run a complete Bitcoin and Stacks development environment locally with Docker.

Contents

Requirements

Verify with:

Start devnet

This starts:
  • Bitcoin node
  • Stacks node
  • Frontend at http://localhost:3000
  • File watcher for auto-regeneration
  • Chain health monitoring (prefixed [dev] logs)
Deploy contracts in a second terminal once the node is ready (~30s):

Auto-deploy

Deploy once the local chain is healthy. No second terminal required.
The supervisor waits for the devnet node, then runs deploy automatically.

Pre-funded accounts

Devnet includes pre-funded accounts in contracts/settings/Devnet.toml:
These are public burner mnemonics for local use only. The CLI prints a safety warning. Never reuse them on testnet or mainnet, and never commit real deployer seeds.
No real STX or external wallet is required for basic debug UI flows on devnet.

Development workflow

  • Edit .clar files. Bindings regenerate automatically.
  • ABI cache in contracts/.cache/ skips unchanged work.
  • Deploy with --auto-deploy or stacksdapp deploy --network devnet.
  • Test with pre-funded accounts.

Stop devnet

Stops services and removes generated and devnet state.

When to use devnet

  • Complex multi-contract interactions
  • Bitcoin-specific features (sBTC, block data)
  • Offline development
  • Full stack simulation

Limitations

  • Slower than testnet (Docker overhead)
  • No real economic incentives
  • Limited to local machine