Inspiration
AI agents are about to become economic actors, but today an "agent that pays" usually means an API key with unlimited blast radius. AgentPay explores the opposite: an agent with a small budget, hard policy limits, and a public audit trail — closer to how you'd actually hand money to an employee.
What it does
You give the agent a job ("build me a morning market briefing") and a USDC budget. The agent decomposes the job into data it must buy, collects quotes from priced micro-services, negotiates (compares quotes against budget and policy, counter-offers once at the midpoint, walks away from bad prices), settles each accepted micro-payment onchain in USDC on Arc Testnet, and verifies the receipt before using the data. A live dashboard shows the budget draining, the guardrails holding, every decision and why, and every transaction linked to the block explorer.
How we built it
One static HTML file — no backend, no build step — hosted on GitHub Pages. In-browser agent engine (decompose → quote → negotiate → policy check → pay → verify → deliver) with ethers.js; agent wallet is an in-browser, session-only testnet wallet with explicit warnings. Sellers are in-page mock services whose delivery is gated on a verified onchain payment receipt (x402-style, demo scale). Policy engine: budget hard-stop, per-payment cap, seller allowlist, approval pause above a threshold, and a kill switch. Decision log narrates every step in plain language.
Verified onchain evidence
Day-1 spike (13 Nov): Arc Testnet (chain 5042002), Circle faucet funded 20 test USDC, a real 0.01 USDC agent→seller payment settled, tx 0xd34072c2e0c98531ee5808ea587052ee63266984a5228c989ab7a52787360b4b, receipt status 1, block 72129605. Day-2 rehearsal (16 Nov) on the live demo: full run bought 3/3 items (0.02 + 0.03 + a negotiated 0.075 USDC after two rejected counter-offers; the 0.075 payment paused for human approval above the 0.05 threshold), all receipts verified; a second run with the per-payment cap at 0.01 refused every quote and spent 0. Rehearsal transaction: https://testnet.arcscan.app/tx/0x28088810419b2d801db44d7cd526bd8503be582d8048c06bd555415a26c8ad46
Challenges
Making negotiation legible (why did it pay 0.075 and not 0.05?) drove the plain-language decision log; keeping keys safe in a pure-frontend demo drove the session-only wallet design with testnet-only warnings.
Accomplishments
A full negotiate→pay→verify loop running against a live testnet from a single static file, with every claim a judge can check either on the page or on the block explorer.
What's next
Real x402 endpoints, multi-agent budgets with per-agent policies, and mainnet pilots with hardware-wallet approval for over-threshold payments.
Note on prizes
Submitted remotely from India; per the rules, prize collection requires in-person presence at the Austin finals — this entry is made with no prize expectation, for the build and the feedback.
Built With
- arc-testnet
- ethers.js
- github
- html5
- javascript
- usdc