Skip to main content

x402-streamSocket

Usage and payment, perfectly synced.

InfraBuild Onchain FBI

About this project

The problem it solves

x402-streamsocket solves the gap between real-time usage and real-time payment.

Most live systems today serve users continuously but charge them discretely. Once a WebSocket connection is open, there’s no native, trust-minimized way to guarantee the user is still paying while consuming resources. Payment usually happens before or after usage, not during it.

This creates real problems:

Overpayment: Users pay upfront even if they disconnect early.

Underpayment risk: Services keep connections open without knowing if payment still reflects usage.

Complex billing logic: Developers need off-chain tracking, reconciliation jobs, refunds, and abuse protection.

Poor fit for AI and agents: Autonomous systems need payment and access to stay perfectly in sync.

x402-streamsocket fixes this by making payment itself the access signal.

A Superfluid stream becomes a live proof of intent. As long as value is flowing, access continues. The moment it stops, access ends. No trust, no guessing, no cleanup

About the founder

Building on Base from India

Technologies and tags

SolidityJavaScriptPythonReactNode.jsGolang