Developer Guide
A comprehensive guide for developers building on the Netrun protocol.
Development Environment
Set up your development environment with the following tools:
- —Node.js 18+ or Rust 1.70+
- —Solana CLI tools
- —Netrun CLI
- —A code editor (VS Code recommended)
Project Structure
my-netrun-project/ ├── netrun.config.js # Configuration file ├── assets/ # Asset metadata and images ├── programs/ # Solana programs (if any) ├── scripts/ # Deployment scripts └── tests/ # Test files
Testing
Always test on devnet before deploying to mainnet:
# Run tests netrun test # Deploy to devnet netrun deploy --network devnet
Best Practices
- —Always validate user inputs
- —Use compressed NFTs for large collections
- —Implement proper error handling
- —Test thoroughly on devnet