agent402.tools/api/receipt-verify
Verify the cryptographic signature on an Agent402 signed receipt (a compact JWS, EdDSA over Ed25519) against the receipt keys this server publishes. Optionally send the answer text (body) or its SHA-256 (bodySha256), and the request (method, path, body), to check them against what the receipt signs. Returns valid, the key id, a reason when invalid, and the signed fields: route, amount, rail, netwo
POST
https://agent402.tools/api/receipt-verifyUptime100% of 1 check in 30 days
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
// npm install fourohtwo
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://agent402.tools/api/receipt-verify", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"receipt":"<723 characters; the full example is in /openapi.json>"}),
});
console.log(await res.json());Example input
{
"receipt": "<723 characters; the full example is in /openapi.json>"
}