Fail-Closed Delivery Verification for Pay-Per-Call Agent APIs: A Delivery-Ledger Design for x402 Services

Pay-per-call APIs built on the x402 protocol let autonomous agents buy single HTTP requests with stablecoin micropayments, settling each call on-chain through an EIP-3009 authorization. Operating such services in production exposes a verification gap that the protocol itself does not close: a payment can settle while the paid response is lost in transport, and a seller watching only its payment wallet cannot reliably tell which route a given settlement paid for, because many routes share the same price. This paper describes a fail-closed delivery-verification design developed and run in production on a five-service, 49-route x402 fleet on Base. Sellers record every paid delivery at delivery time in a single durable ledger — timestamp, service, route, payer, amount, and settlement transaction, verified against chain state at write time — and an independent reconciler joins on-chain transfers to ledger records by transaction hash. A settled transfer with no ledger record is raised as an unidentified-settlement incident and is never attributed by guessing from its amount. On the buyer side, the design enforces pre-signing validation of the payment challenge (network, asset, amount, and authorization validity window), hard spend caps checked before signing, and a lost-response rule under which settlement is reported as unknown and the payment is never automatically retried. We describe the failure modes that motivated each rule — including a response lost after signing against a third-party search API, and a third-party endpoint that repeatedly accepted payment authorization and then rejected the request — and report operational experience from the fleet's first month, including 127 external settlements reconciled as of November 16, 2026.

Authors

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-11-16
DOI
https://doi.org/10.5281/zenodo.24281514
Primary Topic
Blockchain Technology Applications and Security
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

Fail-Closed Delivery Verification for Pay-Per-Call Agent APIs: A Delivery-Ledger Design for x402 Services

Quincy Goertz-Brown
1 links
Zenodo (CERN European Organization for Nuclear Research)
Blockchain Technology Applications and Security
preprint

Fail-Closed Delivery Verification for Pay-Per-Call Agent APIs: A Delivery-Ledger Design for x402 Services

Quincy Goertz-Brown
preprint en

Abstract

Pay-per-call APIs built on the x402 protocol let autonomous agents buy single HTTP requests with stablecoin micropayments, settling each call on-chain through an EIP-3009 authorization. Operating such services in production exposes a verification gap that the protocol itself does not close: a payment can settle while the paid response is lost in transport, and a seller watching only its payment wallet cannot reliably tell which route a given settlement paid for, because many routes share the same price. This paper describes a fail-closed delivery-verification design developed and run in production on a five-service, 49-route x402 fleet on Base. Sellers record every paid delivery at delivery time in a single durable ledger — timestamp, service, route, payer, amount, and settlement transaction, verified against chain state at write time — and an independent reconciler joins on-chain transfers to ledger records by transaction hash. A settled transfer with no ledger record is raised as an unidentified-settlement incident and is never attributed by guessing from its amount. On the buyer side, the design enforces pre-signing validation of the payment challenge (network, asset, amount, and authorization validity window), hard spend caps checked before signing, and a lost-response rule under which settlement is reported as unknown and the payment is never automatically retried. We describe the failure modes that motivated each rule — including a response lost after signing against a third-party search API, and a third-party endpoint that repeatedly accepted payment authorization and then rejected the request — and report operational experience from the fleet's first month, including 127 external settlements reconciled as of November 16, 2026.

Zenodo (CERN European Organization for Nuclear Research)
Blockchain Technology Applications and Security
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon