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.

For Beginners

  1. Understanding Arch Programs - Learn the fundamentals
  2. Writing Your First Program - Build your first complete program
  3. Testing Guide - Learn to test thoroughly
  4. Fungible Token - Build a practical program

For Intermediate Developers

  1. Oracle Program - External data integration
  2. Local Validator Setup - Advanced testing environments
  3. Runes Swap - Bitcoin-native features

For Advanced Developers

  1. Lending Protocol - Complex DeFi mechanics
  2. All testing guides - Production-ready development practices

Quick Reference

GuideDifficultyTimeKey Concepts
Understanding Arch ProgramsBeginner30 minArchitecture, concepts
Writing Your First ProgramBeginner2-3 hoursComplete development cycle
Testing GuideIntermediate1-2 hoursTesting strategies
Testnet4 SetupIntermediate30 minAdvanced configuration
Fungible TokenIntermediate3-4 hoursToken standards
Oracle ProgramIntermediate2-3 hoursExternal data
Runes SwapAdvanced4-6 hoursDEX mechanics
Lending ProtocolAdvanced6-8 hoursDeFi 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

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:

Happy building! 🚀