All Projects
Agentic PaymentsCasper2026

Casper x402 Stream

A battle-ready x402 micropayments SDK for Casper — gate any HTTP route behind an on-chain micropayment with one middleware, and have clients auto-pay with one wrapped fetch. On top of it: a pay-per-second WebRTC streamer.

x402CEP-18WebRTCPayments SDK
Casper x402 Stream repository preview

Casper x402 Stream

At its core, a consumer-grade x402 payments SDK for Casper: gate any HTTP route behind a micropayment with one middleware, and have clients auto-pay with one wrapped fetch.

// server — gate a route behind a payment
app.get("/premium", paymentMiddleware({ rail, amount, payTo }), handler)

// client — the 402 is paid + retried invisibly
const pay = wrapFetch(fetch, { rail, signFn, maxValue })
const res = await pay("https://api.example.com/premium")

Every payment settles on-chain as a real CEP-18 transfer_with_authorization via the CSPR.cloud x402 facilitator.

The demo on top

A pay-per-second WebRTC streamer — you're charged continuously for exactly the stream time you consume, settled on Casper. It's what "charge for anything over HTTP" looks like when the unit is a second of video. Built for the Casper Agentic Buildathon 2026.

Next Project

Clawback