Flow402x

An open protocol for streaming-native payments. Per-second, frictionless settlement for digital content and APIs — powered by Solana.

The best way to monetize live digital content

Built around HTTP 402, Flow402x enables continuous billing for video, data, and API streams — no subscriptions, no accounts, no intermediaries. Payments flow in real time and stop instantly when access ends.

Granularity

Per-second or per-byte billing with full transparency.

Instant Settlement

Accept payments at blockchain speed, not T+2.

Chain-Agnostic

Compatible with any stablecoin on performant networks.

Frictionless

Integrate with one middleware line; no registration required.

Open Standard

Vendor-neutral and fully composable.

Web-Native

Activates HTTP 402 via standard headers and status codes.

Architecture

  • Gateway: A delegate wallet authorized for a capped allowance per session.
  • Approval: User signs an approveChecked instruction to grant temporary access.
  • Transfer loop: Server streams tokens each second using createTransferCheckedInstruction.
  • Variable pricing: Rates can be adjusted dynamically per content or resource type.

Core Transfer Logic

const tx = new Transaction();
tx.recentBlockhash = blockhash;
tx.feePayer = gatewayKey.publicKey;

tx.add(createTransferCheckedInstruction(
  userAta,
  usdcMint,
  creatorAta,
  gatewayKey.publicKey,
  perSecond, // 1 token/sec
  6,
  [],
  TOKEN_PROGRAM_ID
));

tx.add(new TransactionInstruction({
  programId: new PublicKey("MemoSq4gqABAXKb96qnH8TysNcWxMyWCqXgDLGmfcHr"),
  data: Buffer.from(`flow402x-${Date.now()}`)
}));

tx.sign(gatewayKey);
await connection.sendRawTransaction(tx.serialize());

Each transaction represents one payment tick. The memo ensures uniqueness while minimizing RPC requests.

Use Cases

  • Per-second monetization for video, audio, or livestreams.
  • Dynamic API pricing without subscriptions or keys.
  • Pay-per-view or pay-per-byte content models.
  • On-chain revenue sharing between creators and distributors.

Vision

Flow402x is designed to be the web’s native micropayment layer — an open, composable primitive for real-time value transfer. Transparent. Permissionless. Built for developers. HDzTPAndwe5XRvReLzLdUNaNCkbVv141ELZ2AGKGCpAA