Skip to content

Labcoat documentation

Labcoat is a Rust-first CLI for building Alkanes smart contracts on Bitcoin. It owns project scaffolding, native tests, WebAssembly compilation, the local devnet, wallets, deployments, contract calls, simulation, and decoded traces.

Terminal window
labcoat init hello-alkane
cd hello-alkane
labcoat test
labcoat up

The labcoat binary is the public interface. Internal Rust crates may evolve, but CLI commands, labcoat/v1/* JSON envelopes, and MCP tools are designed for automation.

Every JSON error includes a stable code, a human-readable message, and a recovery hint naming the next useful command.