Solana Anchor program for managing AI agents linked to verified NFT collections
- Quick Start Guide - Get up and running quickly
- Affiliate Program - Revenue sharing and referral system
- System Architecture - Technical system overview
- Integration Guide - Developer integration instructions
- Program Specifications - Anchor program documentation
- Security Model - Security architecture and best practices
- Economics & Fees - Fee structure and distribution
- Partner PDA Architecture - Scalable partner system (1000+)
Mainframe is a Solana Anchor program that manages agent accounts linked to NFTs from verified collections. The program handles NFT ownership validation, fee collection and distribution, and emits events for off-chain systems.
Core Capabilities:
- Agent lifecycle management (create, update, transfer, pause, close)
- PDA-based agent accounts with deterministic derivation
- Tiered fee structure with collection-based discounts
- Automatic fee distribution across treasuries
- Affiliate revenue sharing system
- Event emission for off-chain consumption
See Program Specifications for detailed instruction and account documentation.
| Operation | Standard | Genesis | Partners |
|---|---|---|---|
| Create Agent | 0.05 SOL | FREE | 25-75% off |
| Update Config | 0.005 SOL | FREE | 25-75% off |
| Transfer Agent | 0.01 SOL | FREE | 25-75% off |
| Pause/Resume/Close | FREE | FREE | FREE |
Distribution: 60% Protocol • 30% Validators • 10% Cloud
See Economics & Fees for complete fee calculation logic.
Earn SOL by integrating Mainframe into your platform or referring users
- Up to 50% commission on all agent activation fees
- No caps or limits - earn on every referral
- Instant payouts - revenue shared on-chain in real-time
- Easy integration - simple referral parameter in agent creation
- Collection discounts - 25-75% fee reductions for your users
- Custom fee structures - negotiate volume-based pricing
- Priority support - dedicated integration assistance
- Marketing collaboration - co-promotion opportunities
| Monthly Referrals | Fee Revenue | Your Share (25%) | Your Share (50%) |
|---|---|---|---|
| 100 agents | 5 SOL | 1.25 SOL | 2.5 SOL |
| 500 agents | 25 SOL | 6.25 SOL | 12.5 SOL |
| 1,000 agents | 50 SOL | 12.5 SOL | 25 SOL |
*Based on 0.05 SOL standard activation fee
Ready to start earning? See Affiliate Program for implementation details.
Use the official Mainframe SDK for simplified integration:
📦 Mainframe SDK - TypeScript SDK with built-in encryption, storage, and transaction management
Documentation:
- Quick Start Guide - Complete setup and usage
- Integration Guide - Developer integration patterns
- Affiliate Program - Revenue sharing implementation
Prerequisites: Anchor 0.31.1 • Solana CLI 1.18.26+ • Node.js 18+ • Rust
# Clone and build
git clone https://github.com/maikershq/maikers-mainframe
cd maikers-mainframe
yarn install
anchor build
anchor testSee System Architecture and Security Model for implementation details.
Apache License 2.0 - see LICENSE file for details.
- mainframe-sdk - TypeScript SDK for client integration
- mainframe-node - Agent Stack runtime for AI agent execution
Built by maikers - creators of realities