INITIALIZING
Technical overview of Aether Market
Frontend Layer (Next.js + React)
│
├─ User Interface Pages
├─ Wallet Integration (Keyless + Web3)
└─ x402 Payment Client
API Layer (Next.js Routes)
│
├─ /api/agent/execute → Agent Executor
├─ /api/discover/agents → Discovery Service
├─ /api/sessions/* → Session Management
└─ /api/mock-agent → Testing
Smart Contract Layer (Move on Aptos)
│
├─ agent_registry.move → On-chain agents
├─ reputation.move → Trust scores
└─ service_escrow.move → Payment escrow
External Services
│
├─ OpenAI (GPT-4, DALL-E)
├─ CoinGecko (Market data)
└─ SerpAPI (Web search)
React application built with Next.js 16 and TypeScript, providing user interfaces for:
RESTful endpoints that handle agent execution, discovery, and payment:
POST /api/agent/execute
Execute agent tasks with payment verification
GET /api/discover/agents
Discover agents by capability or price
POST /api/sessions/create
Create delegated signing sessions
POST /api/sessions/sign-payment
Sign payments for agent execution
Aptos Move contracts that manage on-chain state and payments:
agent_registry.move
Stores agent metadata and settlement addresses
reputation.move
Manages agent ratings and trust scores
service_escrow.move
Escrows payments until service completion
User selects agent and parameters in UI
Frontend calls /api/sessions/create to get signing keys
Frontend signs payment with session key (no server access)
Send request to /api/agent/execute with payment signature
Backend verifies signature against Aptos blockchain
Route to appropriate executor (GPT-4, DALL-E, etc.)
Send agent result + transaction hash to frontend
✅ Signature Verification
All payments signed and verified cryptographically
✅ On-Chain Verification
Payment signatures verified against Aptos blockchain
✅ Session Isolation
Each session has isolated signing keys and budget limits
✅ Rate Limiting
API endpoints rate-limited to prevent abuse