OpenClaw USDC Hackathon 2026: Agent-to-Agent Payments via x402 Protocol
openclaw-usdc-hackathon-2026 is an early-stage TypeScript project in the AI payments / x402 ecosystem. It currently has 0 GitHub stars and 0 forks.
OpenClaw USDC Hackathon 2026 Submission
A working demonstration of autonomous agents exchanging USDC payments for services using the x402 payment protocol on Base Sepolia testnet.
This project demonstrates agent-to-agent economic transactions where AI agents can:
Key Innovation: Autonomous agents conducting economic transactions without human intervention, powered by the x402 HTTP payment protocol and USDC stablecoin.
Everything needed to submit (minus the actual video recording) is packaged in-repo.
Start here (copy/paste submit):
SUBMIT-NOW.md — one page with final steps + form fieldsCore submission docs:
SUBMISSION.md — full submission guideSUBMISSION-CHECKLIST.md — quick checklistRELEASE.md — GitHub Release draft checklist + suggested tagAssets you still need to produce (human):
CODE-WALKTHROUGH-VIDEO-SCRIPT.md — record the walkthrough; paste the link into README + SUBMIT-NOW.mdLOCAL-DEMO-SCREENSHOT-PLAN.md — exact screenshot list (place images in assets/screenshots/)┌─────────────────────┐ ┌─────────────────────┐
│ Agent A │ │ Agent B │
│ (Requester) │ │ (Performer) │
│ │ │ │
│ 1. Discover │────GET────▶ │ /info │
│ services │ │ (free endpoint) │
│ │ │ │
│ 2. Request task │───POST────▶ │ /task/* │
│ + payment proof │ │ (paid endpoint) │
│ │ │ │
│ │ ◀──402─── │ Payment Required │
│ │ │ (x402 response) │
│ │ │ │
│ 3. Transfer USDC │ │ │
│ on Base Sepolia │──────────────▶ Blockchain │
│ │ │ │
│ 4. Retry request │ │ │
│ with proof │───POST────▶ │ Verify payment │
│ │ │ Execute task │
│ │ │ │
│ │ ◀──200─── │ Return result │
│ 5. Receive result │ │ │
└─────────────────────┘ └─────────────────────┘
Agent A (Requester) - src/agent-a-requester.ts
@x402/fetch SDKAgent B (Performer) - src/agent-b-performer.ts
@x402/express SDKx402 Protocol
This demo includes three real-world service examples:
Agent A pays Agent B to fetch data from any URL.
Use case: API aggregation, web scraping, data collection services
npm run agent-a -- fetch https://api.coinbase.com/v2/exchange-rates?currency=ETH
Agent A pays Agent B to perform calculations on datasets.
Use case: Mathematical analysis, statistical processing, data analytics
npm run agent-a -- compute sum 100,200,300,400,500
Agent A pays Agent B to generate text content based on prompts.
Use case: Content creation, summarization, analysis services
npm run agent-a -- generate "the future of agent-to-agent economies"
# Clone the repository
git clone <repository-url>
cd openclaw-usdc-hackathon-2026
# Install dependencies
npm install
# Build TypeScript
npm run build
cp .env.example .env
.env with your configuration:# Agent A wallet (the requester who pays)
AGENT_A_PRIVATE_KEY=0x...
# Agent B wallet (the service provider who receives)
AGENT_B_PRIVATE_KEY=0x...
AGENT_B_ADDRESS=0x...
AGENT_B_PORT=3001
# Network settings
NETWORK=eip155:84532
RPC_URL=https://sepolia.base.org
npm run agent-b
You should see:
╔════════════════════════════════════════════════╗
║ Agent Beta - Service Provider Agent ║
╚════════════════════════════════════════════════╝
💰 Payment recipient: 0x...
✓ x402 resource server initialized
✓ Agent Beta is running on http://localhost:3001
Available services:
GET /info - Agent information (free)
POST /task/fetch - Data fetch service ($0.01 USDC)
POST /task/compute - Computation service ($0.05 USDC)
POST /task/generate - Content generation ($0.10 USDC)
npm run agent-a -- demo
This runs the full demo with all three services. You'll see:
Total cost: $0.16 USDC + gas fees
npm run agent-a -- discover
Fetch data:
npm run agent-a -- fetch https://api.example.com/data
Run computation:
npm run agent-a -- compute average 10,20,30,40,50
npm run agent-a -- compute max 15,42,8,99,23
Generate content:
npm run agent-a -- generate "AI agents in Web3"
npm run agent-a -- demo
The x402 protocol is an HTTP-based payment protocol that extends the HTTP 402 status code. Key features:
1. Client → Server: Request resource
2. Server → Client: 402 Payment Required (with payment details)
3. Client → Blockchain: Transfer USDC to server's address
4. Client → Server: Retry request + payment proof
5. Server → Blockchain: Verify payment transaction
6. Server → Client: 200 OK + resource
Run the automated test suite:
npm test
This verifies:
curl http://localhost:3001/infocurl http://localhost:3001/infocurl -X POST http://localhost:3001/task/fetchnpm run agent-a -- fetch https://api.example.com| Service | Price | Gas (est.) | Total |
|---|---|---|---|
| Data Fetch | $0.01 USDC | ~$0.002 | $0.012 |
| Computation | $0.05 USDC | ~$0.002 | $0.052 |
| Content Gen | $0.10 USDC | ~$0.002 | $0.102 |
| Full Demo | $0.16 USDC | ~$0.006 | ~$0.166 |
Gas prices on Base Sepolia are extremely low (~$0.001-0.002 per transaction)
The video demonstrates:
Today's AI agents are limited to human-initiated tasks. But what if agents could:
This creates an autonomous agent economy where agents are economic actors, not just tools.
Agent Marketplaces
Multi-Agent Workflows
Decentralized API Economy
Agent Collaboration Networks
Core:
START-HERE.md — fastest path to run locallyQUICK-START-GUIDE.md — step-by-step setup + demo commandsdocs/ARCHITECTURE.md — technical designdocs/PAYMENT-FLOW.md — step-by-step payment sequenceSubmission package:
SUBMIT-NOW.md — one-page copy/paste submissionSUBMISSION.md — full submission guideSUBMISSION-CHECKLIST.md — checklistCODE-WALKTHROUGH-VIDEO-SCRIPT.md — walkthrough scriptLOCAL-DEMO-SCREENSHOT-PLAN.md — exact screenshot planThis is a hackathon submission, but contributions are welcome!
git checkout -b feature/amazing-featuregit commit -m 'Add amazing feature'git push origin feature/amazing-featureMIT License - see LICENSE file for details
Built by: Reflectt Labs (AI Agent Team)
Hackathon: OpenClaw USDC Hackathon 2026
Sponsor: Circle (USDC issuer)
Protocol: x402 by Coinbase
Built with ❤️ by AI agents, for AI agents
Demonstrating the future of autonomous agent economies
The agent-native LLM router for autonomous agents. 55+ models (8 free), <1ms local routing, USDC payments on Base & Solana via x402.
The AI agent with a wallet — spends USDC autonomously to get real work done. Apache-2.0, TypeScript.
The first agentic payment network: policy-controlled, gasless, and real money-ready. OmniClaw CLI + Financial Policy Engine let autonomous agents pay and earn safely at machine speed.
An open SDK for agentic payments. Let AI agents make payments, hold funds, and move money across chains with policy enforcement and human approval built in.
x402 Ecosystem Explorer
🚀 Curated list of x402 resources: HTTP 402 Payment Required protocol for blockchain payments, crypto micropayments, AI agents, API monetization. Includes SDKs (TypeScript, Python, Rust), examples, facilitators (Coinbase, Cloudflare), MCP integration, tutorials. Accept USDC payments with one line of code. Perfect for AI agent economy.