Arch Network Development Guides
This section provides comprehensive guides for building, testing, and deploying Arch Network programs. Whether you’re just starting out or building complex applications, these guides will help you develop robust and efficient programs.
Getting Started Guides
Understanding Arch Programs
Learn the fundamental concepts, architecture, and development patterns for Arch Network programs. This guide covers the complete foundation you need before building your first program.
Covers: Program structure, Bitcoin integration, state management, error handling, and development best practices.
Writing Your First Program
A comprehensive step-by-step tutorial for creating, deploying, and testing a complete counter program with advanced features.
Covers: Project setup, program logic, Bitcoin transactions, security patterns, and comprehensive testing.
Comprehensive Testing Guide
Master testing strategies for Arch Network programs with unit tests, integration tests, security tests, and performance testing.
Covers: Test environment setup, multi-layer testing, security testing, CI/CD integration, and debugging techniques.
Configuration & Setup
Local Validator with Bitcoin Testnet4
Configure your development environment to work with Bitcoin testnet4 for testing ordinals, runes, and advanced Bitcoin features.
Covers: Testnet4 setup, validator configuration, ordinals support, runes protocol, and production considerations.
Program Examples & Tutorials
Fungible Token Program
Build a complete fungible token implementation compatible with standard token interfaces.
What you’ll build: Token minting, transfers, allowances, and metadata management.
Oracle Program
Create a price oracle program that fetches and stores external data on-chain.
What you’ll build: Price feeds, data validation, timestamp management, and trusted data sources.
Runes Swap Program
Implement a decentralized exchange for trading Bitcoin runes and ordinals.
What you’ll build: AMM functionality, liquidity pools, runes integration, and swap mechanisms.
Lending Protocol
Build a complete DeFi lending platform with collateralized loans and interest rates.
What you’ll build: Collateral management, loan origination, interest calculations, and liquidation mechanisms.
Recommended Learning Path
For Beginners
- Understanding Arch Programs - Learn the fundamentals
- Writing Your First Program - Build your first complete program
- Testing Guide - Learn to test thoroughly
- Fungible Token - Build a practical program
For Intermediate Developers
- Oracle Program - External data integration
- Local Validator Setup - Advanced testing environments
- Runes Swap - Bitcoin-native features
For Advanced Developers
- Lending Protocol - Complex DeFi mechanics
- All testing guides - Production-ready development practices
Quick Reference
Guide | Difficulty | Time | Key Concepts |
---|---|---|---|
Understanding Arch Programs | Beginner | 30 min | Architecture, concepts |
Writing Your First Program | Beginner | 2-3 hours | Complete development cycle |
Testing Guide | Intermediate | 1-2 hours | Testing strategies |
Testnet4 Setup | Intermediate | 30 min | Advanced configuration |
Fungible Token | Intermediate | 3-4 hours | Token standards |
Oracle Program | Intermediate | 2-3 hours | External data |
Runes Swap | Advanced | 4-6 hours | DEX mechanics |
Lending Protocol | Advanced | 6-8 hours | DeFi protocols |
Development Tips
Before You Start
- Set up your environment following the Quick Start Guide
- Understand Bitcoin basics if you’re new to Bitcoin development
- Review Rust fundamentals if you’re not familiar with Rust
Best Practices
- Start simple - Begin with basic programs before building complex systems
- Test thoroughly - Use the comprehensive testing strategies from our guides
- Follow security patterns - Always validate inputs and handle errors gracefully
- Document your code - Future you (and your team) will thank you
Getting Help
- Join our Discord for real-time support
- Check the API Reference for detailed documentation
- Review Core Concepts for architectural guidance
- File issues on GitHub for bugs
Contributing
Found an issue or want to improve these guides? We welcome contributions!
- Report bugs or unclear instructions
- Suggest improvements to existing guides
- Propose new guides for topics we haven’t covered
- Share your programs as examples for the community
What’s Next?
Choose your path based on your experience level and goals:
- New to Arch? Start with Understanding Arch Programs
- Ready to code? Jump into Writing Your First Program
- Building tokens? Check out the Fungible Token guide
- Interested in DeFi? Try the Lending Protocol guide
Happy building! 🚀