Facilitator
Payment escrow for streaming and usage-based jobs.
Facilitator extends the x402 payment protocol with a holding step — making it usable for work where cost adds up over time instead of settling in a single transaction.
The Problem x402 Alone Doesn’t Solve
Section titled “The Problem x402 Alone Doesn’t Solve”x402 handles one-shot API calls fine: “I want this response, here’s $0.01.” But CodecFlow jobs are open-ended:
- A Fabric GPU cluster running for an unknown amount of time
- A SimArena cloud simulation streaming frame by frame
- An optr operator processing a continuous video feed for hours
Plain x402 schemes don’t work here:
- Exact — client commits to a fixed amount before work starts. Impossible when you don’t know the final cost.
- Upto — client authorizes a maximum, settled at the end. The provider is exposed the whole time — if the authorization expires or the client disappears, the provider ate the compute cost.
What Facilitator Adds
Section titled “What Facilitator Adds”A holding step — funds lock in a smart contract up front, draw down as usage adds up, and the rest comes back when the session ends.
1. Client authorizes → signs payment for a maximum amount2. Facilitator verifies → checks signature and available funds3. Facilitator holds → moves funds into on-chain escrow4. Provider delivers → streams compute, simulation, data5. Facilitator settles → releases funds to provider as usage is reported6. Session ends → any held funds left over go back to the clientProvider gets paid as they work. Client pays only for what was used. Neither side has to trust the other — the contract enforces the rules.
Where It’s Used
Section titled “Where It’s Used”- Fabric — agents request compute (GPUs, containers, serverless functions) and pay per second from held funds. No billing accounts needed.
- SimArena — when agents access SimArena through the API/MCP server, per-use payments flow through Facilitator. Credits handle humans; Facilitator handles machines.
- optr — operators pay for Fabric compute through Facilitator. Operators offering services get paid through Facilitator. The holding mechanism keeps streaming jobs funded without having to commit to the full duration up front.
Standalone Product
Section titled “Standalone Product”Facilitator works for any service that charges for ongoing usage — streaming APIs, compute platforms, real-time data feeds, pay-per-minute SaaS.
Ships with:
- Smart contracts on EVM chains and Solana
- Rust backend service (verify → hold → settle)
- TypeScript SDKs for client and server
- Dashboard for monitoring active sessions and settlements