Skip to content

dasC-0p/maikers-mainframe

 
 

Mainframe

Solana Anchor program for managing AI agents linked to verified NFT collections

Anchor Solana Security License

Documentation

Getting Started

Technical Reference

Overview

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.

Fee Structure

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.

Revenue Sharing

Earn SOL by integrating Mainframe into your platform or referring users

Affiliate Program

  • 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

Partner Benefits

  • 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

Revenue Examples

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.

Quick Start

For SDK Integration

Use the official Mainframe SDK for simplified integration:

📦 Mainframe SDK - TypeScript SDK with built-in encryption, storage, and transaction management

For Direct Program Integration

Documentation:

Development

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 test

See System Architecture and Security Model for implementation details.

License

Apache License 2.0 - see LICENSE file for details.

Related Repositories


Built by maikers - creators of realities

About

Permissionless Solana protocol linking AI agents to NFTs from verified collections (incl. affiliate revenue sharing)

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • TypeScript 59.6%
  • Rust 40.4%