x402-reconcile

A read-only x402 payment challenge inspector. One inspect command shows exactly what an x402 endpoint demands before it serves — and records response evidence. Never pays.

What it is

x402-reconcile is a command-line tool that inspects an x402 endpoint's HTTP 402 payment challenge. It detects the 402, locates the payment document, and parses the required payment fields — scheme, network, asset, amount, payTo — plus response latency and a SHA-256 hash of the raw response bytes. It is a challenge inspector, not a wallet, not a payer, not a settlement monitor.

The problem it solves

Before an agent (or a human) points an x402 buyer at an endpoint, you want to know: what exactly does this endpoint demand before serving? x402 endpoints advertise their payment requirement in a 402 document that can live in several HTTP locations and two schema shapes. x402-reconcile answers the question read-only — it never signs or submits a payment, so you can reconcile an endpoint's stated requirement without spending anything.

When to use it

When NOT to use it

Installation

npm install -g x402-reconcile     # or run without installing:
npx x402-reconcile inspect <url> --method=POST --json

Real command

npx x402-reconcile inspect https://api.example.com/paid --method=POST --json

Real example (documented live inspection)

The published README records a real public endpoint inspection (2026-09-24): https://notary.forgemesh.io/api/notarize returned HTTP 402 with exact / USDC / amount 1000 — the challenge was parsed, nothing was paid.

Example output

Representative output from the documented live inspection above. The exact SHA-256 and latency are computed by the tool at runtime against the live endpoint; the payment fields shown are the values the README documents.

{
  "endpoint": "https://notary.forgemesh.io/api/notarize",
  "method": "POST",
  "status": 402,
  "payment": {
    "scheme": "exact",
    "network": "eip155:1",
    "asset": "USDC",
    "amount": "1000",
    "payTo": "(address from the 402 document)"
  },
  "evidence": { "elapsedMs": "(measured)", "bodySha256": "(computed at runtime)" }
}

What it checks

What it does NOT check

Limitations

Status

Experimental (0.1.0). Local smoke tests pass (402 challenge, non-402, missing payment document) and one real public x402 endpoint has been inspected read-only.

npm

Package: x402-reconcile — published by npm user eidonze, version 0.1.0, MIT.

GitHub

Source: xka0085-byte/x402-reconcile — issues and the full README live there.

Related tools

Part of the Agent / Chain Evidence Tools suite · MIT · Node ≥ 18 · read-only, no keys, no payments