xStream
Pay-per-second streaming, powered by x402
Created on 13th October 2025
•
xStream
Pay-per-second streaming, powered by x402
The problem xStream solves
Today’s video platforms trap both creators and viewers in outdated models :
- Creators lose up to 45% of revenue to platforms and wait weeks for payouts.
- Viewers pay full subscriptions even if they only watch a few minutes, or are forced to sit through intrusive ads.
- Builders have no open infrastructure to innovate on monetization and every platform is closed and centralized.
xStream solves this by enabling instant, per-second micropayments between viewers and creators using x402 on Base.
Viewers pay only for what they watch with no subscriptions, no ads.
Creators earn instantly in crypto, without middlemen.
Builders can extend the ecosystem by building analytics, NFT reward systems, or creator tools, earning as they build.
In short:
xStream makes video streaming fair, programmable, and open where everyone earns in real time.
Challenges we ran into
1. CDP AgentKit SDK Integration
The Problem: CDP SDK documentation was inconsistent between V1/V2. Initial implementation used non-existent methods like
Coinbase.configure()
andinvokeContract()
, causing authentication failures.The Solution: Used Coinbase Developer MCP to access latest docs, discovered correct V2 approach:
const cdpClient = new CdpClient({...}) const account = await cdpClient.evm.getOrCreateAccount({name: "settlement-wallet"}) await account.transfer({to, amount, token: "usdc"})
Enabled instant on-chain USDC payouts to creators with verifiable transaction hashes.
2. FFmpeg Video Processing Challenges
The Problem:
- Initial uploads took 5+ minutes for transcoding
- Server memory spikes with concurrent uploads
- Quality presets (1080p, 720p, 480p) generation was sequential
- No progress feedback to users
The Solution:
- Implemented parallel quality generation with worker threads
- Added streaming uploads to reduce memory usage
- Created progress WebSocket for real-time encoding status
- Implemented adaptive bitrate encoding based on source quality
- Added thumbnail extraction at optimal keyframes
3. Real-Time Balance Sync Across Components
The Problem: Video player showed correct balance ($5.9996) but profile page showed $0.00. Next.js 15 aggressive caching prevented updates.
The Solution:
- Disabled caching with
cache: 'no-store'
- Implemented manual refresh mechanism with state synchronization
- Changed decimal precision from
.toFixed(2)
to.toFixed(4)
for micro-payments - Added
useEffect
hooks to update state when userData changes
4. Auto-Settlement vs Manual Processing
The Problem: Initial design required manual admin intervention for payouts with uncertain wait times.
The Solution: Refactored to instant auto-settlement - when creators request withdrawal, system immediately:
- Validates earnings
- Creates settlement record
- Sends USDC via CDP AgentKit
- Returns transaction hash
Result: 5-30 second payouts instead of manual processing delays.
Link to the GitHub Repo of your project
https://github.com/imApoorva36/xstream
Live URL of your project
What is your product’s unique value proposition?
xStream is a next-generation video platform built on Base that uses x402 micropayments to let viewers pay per second or per video quality, while creators earn instantly in USDC.
Unlike traditional subscription or pay-per-view models, xStream enables real-time, transparent value exchange between viewer and creator. Users pre-stake funds before watching, pay only for what they consume, and automatically get refunded for any unused balance.
The alpha build validates this value by integrating:
- x402-powered per-second billing for videos
- Instant USDC settlements via Coinbase CDP AgentKit
- Stake-before-view smart logic with automated refunds
- Custodial wallet experience for seamless, gasless interactions
xStream proves that onchain micropayments can make video streaming fair, efficient, and open, therefore turning every second of attention into real value.
Who is your target customer?
xStream primarily targets independent video creators and digital builders who want fair, transparent, and instant monetization for their on-demand video content. This includes:
- Educators & knowledge creators who share tutorials, courses, and short lectures.
- Indie filmmakers and content creators frustrated by high platform cuts and delayed payouts.
- Builder communities on Base & Farcaster, where micropayments, tipping, and creator-first tools are already part of the culture.
Validation:
- Through conversations with small creators and community builders, we found recurring frustration with subscription models and ad-driven platforms.
- Our testing in the alpha phase confirmed that creators value instant USDC settlements and per-second pricing as both practical and fair.
- Active Base & Farcaster communities show strong engagement around onchain tipping and micropayments, validating that xStream fits well within this behavioral pattern.
In short, xStream serves the growing class of Web3-native creators and builders who want to stream, build, and earn instantly without relying on intermediaries or outdated monetization models.
Who are your closest competitors and how are you different?
Competitors:
- Odysee (LBRY) - decentralized video sharing platform
- Glass.xyz - NFT-based video monetization
- Uscreen - SaaS platform for creators to sell video access
- Dacast - subscription & pay-per-view video hosting
- Muvi - OTT platform for branded streaming services
How xStream is Different:
- Per-second & quality-based billing: Viewers pay only for the seconds and resolution they actually watch with no subscriptions or fixed PPV rates.
- Instant on-chain settlements: Creator earnings are sent directly and instantly to their wallets via x402 micropayments, removing platform payout delays.
- Stake-and-refund model: Users stake before viewing and automatically get refunds for unused watch time, ensuring full payment fairness.
- Web2-like UX with Web3 power: Familiar video experience with the precision, transparency, and autonomy of on-chain payments.
- Creator-first revenue logic: No middlemen, no opaque cuts with 100% of viewer spend flows transparently to the creator in real time.
In short:
While other platforms tokenize or gate content, xStream introduces true pay-as-you-watch streaming and turning every second of viewing into instant, fair value transfer between viewer and creator.
What is your distribution strategy and why?
1. Creator-first rollout:
We’ll start by onboarding early-stage creators and builders from the Base and Farcaster communities where people already comfortable with crypto payments and experimentation. They act as initial evangelists, uploading short-form videos and inviting their audiences to test pay-per-second streaming.
2. Community-driven expansion:
We’ll partner with Base Café sessions, Farcaster channels, and creator collectives to run “Build. Stream. Earn.” campaigns where where builders and creators share content, get paid instantly via xStream, and showcase real earnings on Base.
3. Incentivized engagement:
Creators receive boosted visibility and loyalty NFTs for bringing in viewers; viewers get micro-rewards for consistent usage or referrals.
4. Low-friction onboarding:
A Web2-style UX with custodial wallets reduces the barrier for new users who aren’t fully Web3-native, allowing us to scale beyond the crypto community.
Why this works:
- Focuses on builders + creators, the most active early adopters on Base
- Aligns with Base’s own community growth programs and user behavior
- Uses creator networks for organic, self-sustaining growth rather than paid acquisition
Cheer Project
Cheering for a project means supporting a project you like with as little as 0.0025 ETH. Right now, you can Cheer using ETH on Arbitrum, Optimism and Base.
