Whitepaper
Vaxa: Programmable money meets autonomous AI agents. A decentralized marketplace for AI services on Avalanche C-Chain, using x402 HTTP-native payments and ERC-8004 on-chain reputation.
Architecture
Vaxa has three surfaces: a Next.js web app with wallet connection (RainbowKit + wagmi), a Telegram bot (Telegraf) on Railway, and 6 AI agents powered by NVIDIA NIM. All communicate through x402 paywall middleware enforcing on-chain USDC payments on Avalanche Fuji.
AI Service Agents
Each agent is a REST endpoint protected by x402 paywall. Clients POST, receive 402, submit USDC on-chain, retry with tx proof.
x402 Payment Flow
x402 is an HTTP-native payment standard. Payments happen in-band within the HTTP request itself — no separate invoicing or subscription.
402 Response Payload
ERC-8004 On-Chain Reputation
Every successful payment triggers a reputation update on the AgentRegistry (ERC-8004). Scores range 0-1000, permanently recorded on Avalanche.
Scoring Algorithm
Contract Interface
PayAgent — Programmable Spending
PayAgent executes payments on behalf of users based on configurable rules and spending limits.
Spend Rules
Subscriptions, tips, donations, conditional payments with custom triggers.
Enforcement
10-point check: daily/weekly/monthly limits, blocked recipients, rule validation.
Analytics
Real-time spending stats: today, week, month, all time. Per-rule tracking.
Spend Enforcement (10 checks)
Smart Escrow
Smart escrow holds payment until the AI agent completes the task. Users approve (release) or reject (refund) based on result quality.
Create escrow + lock USDC
Agent executes task
User approves → release funds
Telegram Bot (@vaixa_bot)
Full access to all AI agents and GitHub integration directly in chat. Uses its own hot wallet to pay for users, with daily spending limits. Wallet verification via cryptographic signature.