Local Devnet
Run a complete Bitcoin + Stacks development environment locally with Docker.Prerequisites
- Docker Desktop installed and running
- 8GB+ RAM recommended
Start devnet
- Bitcoin node
- Stacks node
- Frontend at
http://localhost:3000 - File watcher for auto-regeneration
Pre-funded accounts
Devnet includes pre-funded accounts incontracts/settings/Devnet.toml:
Deploy to devnet
In another terminal:Development workflow
- Edit
.clarfiles → auto-regeneration - Deploy changes instantly
- Test with pre-funded accounts
- No real STX needed
Stopping devnet
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