What is x402 Payment Streaming?

2 min read Updated

x402 payment streaming is the pattern of continuous or high-frequency resource consumption paired with periodic x402 settlement — using schemes like deferred (batch settlement) or rapid exact payments to maintain an ongoing payment relationship between an agent and a resource server.

WHY IT MATTERS

Some agent workflows don't fit the discrete request-response model of x402's exact scheme. A market data agent consuming a real-time price feed, an AI assistant in a long-running session purchasing token-by-token inference, or a crawler processing thousands of pages per hour all need continuous payment relationships.

x402 payment streaming addresses this through several approaches:

  • Rapid exact payments — making x402 exact payments at high frequency (every few seconds), viable on low-fee L2s like Base
  • Deferred settlement — Cloudflare's proposed deferred scheme where agents sign cryptographic commitments per resource and settle in daily batches
  • Upto authorisations — the planned upto scheme enables authorising a maximum spend for an extended session, with the server settling actual consumption periodically

The deferred scheme is particularly compelling for streaming. Cloudflare's pay-per-crawl prototype uses it: crawlers sign per-page commitments using HTTP Message Signatures, and settlement happens once per day via connected payment methods. This avoids per-request on-chain transactions entirely while maintaining cryptographic proof of each consumption event.

Payment streaming creates new challenges: how do you cap aggregate spend on a stream? What if the connection drops mid-stream? How do you handle disputes for partial delivery? These are active design questions in the x402 ecosystem.

HOW POLICYLAYER USES THIS

PolicyLayer enforces aggregate spending limits on streaming flows — capping total per-session and per-day spending regardless of how many individual payments comprise the stream. Spending velocity alerts trigger when streaming payment rates exceed configured thresholds.

FREQUENTLY ASKED QUESTIONS

Can agents stream payments with x402 today?
You can approximate streaming with rapid exact payments on Base (sub-cent fees make high-frequency payments viable). Cloudflare's deferred scheme (proposed) enables true streaming-style consumption with batched settlement. Native streaming is on the x402 roadmap.
How does Cloudflare's deferred scheme handle streaming?
Agents sign HTTP Message Signatures for each resource accessed, creating cryptographic proof of consumption. Settlement happens in batches (daily) via traditional payment rails or stablecoins. This decouples the consumption rate from settlement frequency.
What are the gas costs of streaming on L2?
On Base, gas fees are $0.001-$0.01 per transaction. Streaming at 1 payment/second would cost $0.06-$0.60 per minute in gas alone. Batching (every minute or hour) or using deferred settlement dramatically reduces this overhead.

FURTHER READING

Enforce policies on every tool call

Intercept is the open-source MCP proxy that enforces YAML policies on AI agent tool calls. No code changes needed.

npx -y @policylayer/intercept
github.com/policylayer/intercept →
// GET IN TOUCH

Have a question or want to learn more? Send us a message.

Message sent.

We'll get back to you soon.