Full Development Environment
If you’re setting up a full Kontor development environment (including running the indexer and tests), see the Kontor README which covers:- Installing all build dependencies (Bitcoin, ZMQ, etc.)
- Compiling Bitcoin Core for local testing
- Running the full test suite
- Docker deployment
Contract Development Only
To develop and test Sigil contracts without running a local indexer:Install Dependencies
MacOS:Set Up Rust
- Install Rust from rust-lang.org/tools/install
- Add the WebAssembly target:
- Install additional tools:
Working with Example Contracts
The example contracts in this documentation repository require the Kontor indexercore libraries.
If you clone both repos as siblings, the paths work out of the box:
Cargo.toml:
Next Steps
After completing Hello World, explore more examples:- Token - Learn about storage, maps, and state management
- Shared Account - See cross-contract calls in action
- AMM - Build a full automated market maker with complex logic
- Pool - Understand liquidity pool patterns