← Back to home

Stream Verse

Decentralized video streaming: pay only for what you watch with X402 micropayments

Problem Statement

StreamVerse introduces a revolutionary pay-per-second model where viewers are charged $0.001 USDC per 10-second segment instead of full subscriptions, ensuring fair, consumption-based pricing. Using the X402 protocol and the 402 Payment Required HTTP status, real-time micropayments occur seamlessly as videos stream. Content is stored on Filecoin with immutable CIDs for censorship-resistant access, while Polygon Amoy Testnet ensures fast, transparent, verifiable transactions. This creates a decentralized ecosystem where users never waste money, creators earn directly from engagement, and all payments are visible on-chain.

Solution

The platform was built with a modern stack: Next.js 15, TypeScript, Tailwind CSS, Wagmi, and RainbowKit on the frontend; Node.js, Express, PostgreSQL, and Drizzle ORM on the backend. We integrated X402-express middleware for automatic micropayment validation, custom x402-fetch wrappers to enforce payments per video chunk, and dynamic video chunking to progressively stream content. Videos are uploaded and retrieved via Filecoin using Synapse SDK, optimized with warm storage for performance. Hacky but notable implementations include retry logic for failed payments, fallback content delivery for resilience, and a decentralized marketplace interface for fair creator monetization.

Hackathon

ETHGlobal New Delhi

2025

Prizes

  • 🏆

    Filecoin Track2nd place

    Filecoin

Contributors