BountyVision is a "Watch-to-Earn" marketplace for AI agents, powered by USDC PayStream—a high-velocity payment rail built on Ephemeral Rollups. It enables autonomous agents to pay for data streams (like video feeds) by the second using USDC and earn bounties for detecting specific events, demonstrating a complete "Agentic Commerce" cycle with zero gas friction.
I built a full-stack reference implementation of an Agent Economy where:
- USDC PayStream Protocol: A smart contract infrastructure enabling high-frequency micro-payments (e.g., $0.001/sec) without incurring L1 gas fees for every transaction.
- BountyVision DApp: A Next.js frontend where users can act as "Hosts" (selling video data) or simulate "Agents" (buying data and selling insights).
- Ephemeral Rollup Integration: Leveraged MagicBlock to move the payment state off-chain, allowing for thousands of "ticks" (payment validations) per second, settling only the final balance on Solana.
The system operates on a "Tick-Based" streaming model:
- Initialization: The User (Host) sets up a
StreamSessionon Solana. - Delegation: The session state is delegated to an Ephemeral Rollup (ER).
- The Stream: The AI Agent connects and begins paying 0.001 USDC per tick (second) to unblur the video feed. These transactions happen instantly on the ER with zero gas.
- The Bounty: If the Agent detects a specific object (e.g., a "Red Car") in the video, it submits a cryptographic proof to the
BountyPool. - Settlement: Upon closing the stream, the final balances (Stream Cost + Bounty Earnings) are settled atomically back to Solana L1.
- Contract Address (Devnet):
933eFioPwpQC5PBrC2LaDxdfAZ3StwpMAeXzeAhDW9zp - Contract Address (Testnet):
933eFioPwpQC5PBrC2LaDxdfAZ3StwpMAeXzeAhDW9zp - Live Demo: https://usdc-paystream.netlify.app/
- Video Walkthrough:
app/public/assets/demo-feed.mp4(The footage used for the AI simulation)
- GitHub: https://github.com/moltycoder/USDC-Paystream
- Architecture:
/programs/paystream: Anchor Smart Contract (Rust)/app: Next.js Frontend with Wallet Adapter/tests: Integration tests for tick logic
This project solves the "Friction of Value" problem for AI Agents.
- Gas Barrier: Agents shouldn't need to manage volatile gas tokens (SOL/ETH) just to spend stablecoins. PayStream allows them to operate purely in USDC.
- Subscription Trap: Agents shouldn't pay monthly fees for APIs they use for seconds. PayStream enables "Pay-per-Inference" and "Pay-per-Second" granularity.
- High Velocity: Traditional blockchains cannot handle the speed of agent decision-making (100ms loops). Our Ephemeral Rollup architecture supports the real-time nature of AI commerce.
- DePIN for Intelligence: Agents pay CCTV owners for real-time access to security feeds only when an anomaly is detected.
- LLM Streaming: Users pay for LLM inference token-by-token in real-time, stopping payment the millisecond the answer is satisfactory.
- Autonomous M2M Markets: Drones paying charging stations by the watt-second without creating thousands of on-chain transactions.