PayWords settles 1,000 HTTP 402 calls for $0.0077 — in one transaction
A SHA-256 hash chain per call, one Base claim per batch: the Show HN project behind PayWords moved agent micropayment cost from per-call gas to a single $0.0077 settlement, receipt on-chain.
The fee problem in agent micropayments was never the price of a call. It was the price of moving the money — a card floor that eats sub-cent calls alive, or an L2 transaction per HTTP 402 that does the same job slower. PayWords, on Show HN today from newsatoshi.org, attacks the second half: each paid call verifies one SHA-256 hash locally, and 1,000 calls settle in a single Base mainnet transaction their docs price at $0.0077, with the BaseScan receipt published. That's the whole pitch, and it's a good one — the 402 economy was waiting for a settlement layer, not a smaller fee.
How does a hash chain pay for an API call?
The mechanics are old — micropayment channels from the 2010s — dressed for the 402 flow:
- Open — buyer locks plain USDC into an escrow channel; one tx per buyer-seller pair
- Call — the API returns HTTP 402; the agent reveals the next preimage in a SHA-256 chain, ~1–2µs, verified server-side
- Settle — seller calls claim() once per batch; their measured claim(1000) cost $0.0077 on Base
- Exit — refundExpired() returns unused deposit to the buyer, 0% exit fee
The contract is published as ownerless and non-upgradeable, Sourcify exact-match. Zero-code option: a reverse proxy sits in front of an existing API, MCP server or vLLM endpoint and meters it with no code edits.
What do the alternatives cost?
| Rail | Sub-cent economics |
|---|---|
| Cards / Stripe | $0.50 card floor blocks 0.1¢–1¢ calls outright; fees eat a batched $1 charge |
| Per-call x402 | one on-chain tx per call — 1,000 txs of L2 gas and facilitator latency per batch |
| PayWords | 1,000 hash verifications locally, one claim tx per batch ($0.0077) |
Per-call x402 works fine above a few cents. Below that, the settlement cost is the product, and PayWords is the first Show HN-grade implementation to put a measured number on the batch instead of the call.
The trust side nobody priced
Worth holding both thoughts at once: the x402 Foundation standard has Coinbase, Visa, Mastercard, American Express and Stripe behind it — and in October, researchers found the default x402 client took the first payment option on the list with no spending limit, meaning a malicious API could drain an agent's wallet until the fix. Machine-payable APIs are a trust boundary, and the failure mode is a budget, not an injection. PayWords' answer is structural — escrow in, refund out, spending capped by the channel deposit — which is the right shape whether or not this particular project wins.
The small print worth knowing
- MIT-licensed SDKs (single-file JS and Python), plain USDC — no new token
- Chains: Base, Optimism, Arbitrum; settlement measured on Base mainnet
- The page claims 29 Lean 4 theorems over the escrow and L2 logic, "0 sorry"
- This is a Show HN launch: one vendor's benchmarks, one vendor's contract — adoption is the open question, both sides of every API must speak the channel
the radar reads hundreds of sources so you don't have to — the feed · the digest, nightly 21:00