Decentralized AI Compute Aggregation & Micropayment Infrastructure on BotChain EVM
Read the Whitepaper • Live Web App • BOF Facilitator Engine
AgentPayAI delivers sub-cent, pay-as-you-go access to enterprise-grade AI models and autonomous agent capabilities through a decentralized micropayment infrastructure powered by BOF (BotChain Open Facilitator).
AgentPayAI is a multi-chain payment protocol and execution infrastructure engineered to revolutionize how AI services are consumed and monetized. It operates as a:
- Decentralized AI Compute Aggregator — Procures enterprise API inference access from leading AI providers (Anthropic Claude 3.5, Google Gemini 2.5, OpenAI GPT-4o)
- Micropayment Gateway — Enables sub-cent transactions with 1-click gasless EIP-3009 settlement via the x402 HTTP payment engine
- BOF Facilitator Integration — Integrates BOF (BotChain Open Facilitator), an open-source Rust microservice developed by AgentPay AI for off-chain signature verification (
/verify) and gas-sponsored on-chain settlement (/settle) on BotChain EVM - Autonomous Agent Infrastructure — Seamless deployment across BotChain's Autonomous AI Agent Network for human-to-agent and machine-to-machine interactions
Pay-Per-Prompt Billing & Single-Click UX
- Zero friction 1-click payment model (0 gas, 1 wallet signature popup)
- Dynamic pricing per service: 1.0 $APAY for Chat, 2.0 $APAY for Code Audits, 5.0 $APAY for Image Generation
- Sub-second AI response latency via off-chain EIP-712 signature verification before on-chain settlement
Multi-Chain & Protocol Compliance
- Gasless EIP-3009 (
transferWithAuthorization) settlement on BotChain EVM (Testnet 968 & Mainnet 677) - ERC-8004 identity registry and ERC-8021 builder attribution (
0x8021suffix) - Multi-token asset support ($APAY, $USDT)
Agent-First Design
- Built for autonomous agent networks and BotChain integration
- Programmatic task delegation (
/api/botchain/relay) and machine-to-machine payment coordination - Enterprise AI provider routing and load balancing
Tokenomics & Sustainability
- Native $APAY utility token (
0xFd7bF688d5a772A81DfE39da502F69FD99cE92c7) - Automated fee routing, buyback-and-burn mechanisms, and BOT Infrastructure Grant alignment
The comprehensive AgentPayAI Whitepaper provides complete technical and economic specifications:
- Executive Summary — System thesis, core innovations, and strategic alignment with BotChain Ecosystem & BOF integration
- Problem Statement & Market Opportunity — Economic barriers of flat-rate SaaS and necessity of micro-metered access
- BotChain Protocol Integration — Architectural integration, machine identity, and Infrastructure Grant alignment
- x402 Micropayment Engine & EIP-3009 Protocol — Single-click payment flow, gasless off-chain verification via BOF, and identity protocols
- Technical Architecture & Smart Contracts — System design, $APAY token, gateway specification, and implementation best practices
- Economic Model & Tokenomics — Dynamic pricing formulas, $APAY token economics, and fee distribution
- Roadmap & Governance — Development schedule, multi-model routing network, and decentralized governance
┌─────────────────────────────────────────────────────────────┐
│ Next.js 16 Web App / Autonomous Agent │
│ (https://agentpayfrontend.vercel.app) │
└──────────────────────┬──────────────────────────────────────┘
│
│ 1. POST Prompt + X-Payment (EIP-3009 Auth)
▼
┌─────────────────────────────────────────────────────────────┐
│ AgentPay AI Express Gateway (Vercel) │
│ (https://agentpay-backend-eight.vercel.app) │
└───────┬──────────────────────┬──────────────────────────────┘
│ │
│ 2. POST /verify │ 4. Execute Prompt
▼ ▼
┌──────────────────┐ ┌──────────────────────────────────────┐
│ BOF Facilitator │ │ Enterprise AI Providers │
│ Rust Microservice│ ├──────────────────────────────────────┤
│ (Render Hosted) │ │ • Anthropic Claude 3.5 │
└───────┬──────────┘ │ • Google Gemini 2.5 Flash │
│ └──────────────────────────────────────┘
│ 5. POST /settle (Async)
▼
┌─────────────────────────────────────────────────────────────┐
│ BotChain EVM (Testnet 968 / Mainnet 677) │
│ $APAY Token Contract (transferWithAuthorization) │
└─────────────────────────────────────────────────────────────┘
Production Payment Settlement Flow:
User Request -> 402 Challenge -> 1-Click EIP-712 Sign (0 Gas) ->
BOF Off-Chain Verify -> Immediate AI Completion -> Stream Response ->
BOF Async On-Chain Settle (transferWithAuthorization)
- AI Text Assistant (
/api/chat): 1.0 $APAY per prompt - Smart Contract Auditor (
/api/code): 2.0 $APAY per audit - AI Image Generator (
/api/image): 5.0 $APAY per render
- Facilitator Engine: BOF (BotChain Open Facilitator) written in Rust (Axum, Tokio, Ethers-rs)
- API Gateway: Express.js with
@x402/expressmiddleware and@anthropic-ai/sdk - Frontend App: Next.js 16, Privy Auth, Wagmi, Ethers, TailwindCSS
- Payment Protocol: x402 HTTP Payment Standard with EIP-3009 Gasless Off-Chain Signing
- Smart Contracts: Solidity 0.8.24 (
APAYToken.sol,AgentPayRegistry.sol, ERC-8004, ERC-8021) - Blockchain: BotChain EVM (Testnet 968 & Mainnet 677)
- BOF — BotChain Open Facilitator (Rust microservice for /verify & /settle)
- agentpay-whitepaper — Official technical & economic whitepaper
- agentpay_backend — Express.js API gateway with Claude AI integration & BOF client
- agentpay_frontend — Next.js 16 pay-per-prompt web application
- agentpay_contracts — Foundry smart contracts (APAYToken & AgentPayRegistry)
- Web Application:
https://agentpayfrontend.vercel.app - API Gateway:
https://agentpay-backend-eight.vercel.app - BOF Facilitator Engine:
https://bof-facilitator.onrender.com - Whitepaper Docs:
https://github.com/agentpay-ai/agentpay-whitepaper
agentpay • bof-facilitator • micropayments • x402 • eip-3009 • autonomous-agents • botchain • ai-infrastructure • web3 • rust
Building the decentralized AI payment infrastructure for the autonomous agent era.