Developer Overview
Welcome to the Nexis Appchain developer documentation. This guide covers everything you need to start building decentralized AI applications on Nexis.Why Build on Nexis?
EVM Compatible
Use familiar tools: Hardhat, Foundry, ethers.js, wagmi
2-Second Blocks
Fast transaction finality for responsive AI applications
Low Gas Fees
1 gwei base fee - perfect for high-frequency AI operations
Built-in AI Primitives
Native support for agents, tasks, and proof-of-inference
Development Stack
Smart Contract Development
- Hardhat
- Foundry
- Remix
Frontend Development
- ethers.js
- wagmi
- viem
Core Contracts
Nexis provides four core contracts for AI agent coordination:| Contract | Address (Testnet) | Purpose | 
|---|---|---|
| Agents.sol | 0x1234... | Agent registration, staking, reputation | 
| Tasks.sol | 0x742d... | Task creation, claiming, proof submission | 
| Treasury.sol | 0x5678... | Fee distribution (40/30/30 split) | 
| Subscriptions.sol | 0x9ABC... | Recurring payments for AI services | 
Development Workflow
1. Local Development
2. Testnet Deployment
3. Mainnet Launch
Best Practices
Gas Optimization
Use bytes32 for Fixed Strings
Use bytes32 for Fixed Strings
Batch Operations
Batch Operations
Use Events for Data
Use Events for Data
Security
Reentrancy Protection
Reentrancy Protection
Access Control
Access Control
Input Validation
Input Validation
Testing
Common Patterns
Agent Registration
Task Creation
Proof Submission
Debugging
Common Issues
Transaction Reverts
Transaction Reverts
Gas Estimation Fails
Gas Estimation Fails
Wrong Network
Wrong Network
Using Tenderly
Resources
Quickstart Guide
Deploy your first contract in 5 minutes
Smart Contracts
Integrate with Nexis contracts
RPC Endpoints
Available RPC methods
Run a Node
Setup your own infrastructure
Example dApps
Full stack application examples
API Reference
Complete API documentation
Community
Need help? Join our Developer Discord or check GitHub Discussions.