PayStream: decentralized pay-per-second video streaming with Yellow Network state channels
PayStream is a revolutionary decentralized video streaming platform built on Yellow Network state channels that fundamentally reimagines how audiences consume content and how creators earn. By eliminating subscription fatigue and platform extraction, PayStream introduces true pay-per-second economics—users deposit USDC to open a Yellow Network state channel and pay only $0.002 per second for content they actually watch. This breakthrough model ensures creators receive instant, transparent, and fair compensation while viewers enjoy unprecedented control over their spending. For the first time, blockchain technology makes micropayment-based streaming economically viable, creating an ecosystem where user incentives and creator rewards are perfectly aligned.
Key Features:
Per-second billing: Pay only for consumed content, save 50-80% vs traditional streaming Instant creator payouts: Zero middleman cuts, real-time settlement Zero transaction costs: Off-chain state channels eliminate gas fees Full user control: Pause payments instantly, resume when ready Transparent economics: Complete visibility into where your money goes HOW IT'S MADE
PayStream leverages Yellow Network's state channel protocol—a cutting-edge Layer 2 scaling solution—to enable true micropayment streaming. The architecture works seamlessly across three layers:
Frontend (Next.js): Users connect their MetaMask wallet and deposit USDC. The interface initiates a WebSocket connection to Yellow's Clearnode service, which opens a state channel off-chain with zero latency and zero gas fees. As video playback begins, payments stream continuously at $0.002/second. The user experience is frictionless—pause the video, payments pause; resume, payments resume immediately.
State Channel Protocol (Yellow Network): All per-second payments happen off-chain through state updates signed by both parties. Yellow's Clearnode validates state transitions in real-time, ensuring cryptographic certainty. When the user ends their session, the final balance is settled in a single on-chain Ethereum transaction, with any unused USDC refunded instantly to the user's wallet.
Backend (Express.js + MongoDB): The backend orchestrates session management, tracks payment history, manages video catalogs, and calculates creator payouts. It integrates with Yellow Network's API for state channel coordination and maintains audit logs for transparency.
Blockchain Layer (Ethereum + USDC): USDC token contracts handle deposits and settlements. Smart contracts manage custody of user funds and ensure secure withdrawal mechanics. The system uses Sepolia testnet for development and Ethereum mainnet for production deployment.
This architecture achieves what traditional blockchain or centralized systems cannot: economical per-second micropayments with instant creator compensation and zero transaction overhead.
IMPACT
✨ For Viewers: No more paying $50/month for unwatched content. Control spending to the second.
💰 For Creators: Earn fair rates instantly. No 45% platform cuts. Direct audience connection.
🚀 For Web3: First production validation of Yellow Network state channels. Proof that micropayments enable entirely new business models.
PayStream leverages Yellow Network's state channels for efficient micropayments. When a user deposits USDC, a state channel opens off-chain. As they watch, payments stream at $0.002/second without gas fees. When the session ends, the final settlement occurs on-chain, with unused USDC automatically refunded. This architecture eliminates transaction costs while enabling real-time creator payments.

