Menu

Get paid only for work that verifies: pay-on-proof for agent APIs (x402 arl-escrow)
📰

Get paid only for work that verifies: pay-on-proof for agent APIs (x402 arl-escrow)

DEV Community: typescript·ARL Protocol·15 days ago
#M8ZBybDv
#devtotypescript#devto#dev#committee#escrow
Long article (750 words) — no AI summary yet.
Reading 0:00
15s threshold

Pay-per-call works for an API call that costs a cent: the money moves with the request, and if the answer is bad, nobody loses much.

It stops working when an agent buys something it cannot judge in the moment: a research report, a model run, a build. The buyer needs a way not to pay for bad work. The seller needs to know the money exists before starting. x402's exact scheme gives neither, because it settles with the request.

This week we released a second option on Base: payOnProof , in arl-protocol-sdk 0.3.1.

The idea in one paragraph

Keep the HTTP 402 negotiation, change what "paid" means. The caller locks the price in an escrow. The service does the work. A committee of staked validators, named in the terms, checks the result against a pinned specification. Only then does the escrow pay the service. If the committee rejects the work, or nobody delivers, the caller is refunded.

The selling side

One wrapper around a handler.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.