Skip to content
Fourohtwo

Cryptographic verification of the offer-receipt extension of x402

x402.halowerk.com/receipt/verify

Cryptographic verification of the offer-receipt extension of x402. Accepts a signed offer in eip712, jws or eip191 form — either bundled as {format, payload, signature} or as payload plus a separate signature — and an optional signed receipt. Recovers the signer, compares it with the payTo of the offer, compares receipt and offer field by field and names every divergence with the value on each sid

BaseAnswering
POSThttps://x402.halowerk.com/receipt/verify

Uptime100% 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://x402.halowerk.com/receipt/verify", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"offer":{"format":"eip191","payload":{"amount":"1000","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","network":"eip155:8453","payTo":"0x48fDc78042f5d67B1352d2923829448c0BA7042D","resourceUrl":"https://fetch.halowerk.com/extract","scheme":"exact","validUntil":4102444800,"version":1},"signature":"0x6b2703e77345fc7dae18f74b8851c9c995ffe74005eab9b9a52f9e86743fac6b033d42ba6005714d00bc40a5624405b),
});
console.log(await res.json());

Example input

{"offer":{"format":"eip191","payload":{"amount":"1000","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","network":"eip155:8453","payTo":"0x48fDc78042f5d67B1352d2923829448c0BA7042D","resourceUrl":"https://fetch.halowerk.com/extract","scheme":"exact","validUntil":4102444800,"version":1},"signature":"0x6b2703e77345fc7dae18f74b8851c9c995ffe74005eab9b9a52f9e86743fac6b033d42ba6005714d00bc40a5624405b

More from HALOWERK x402werkProvider status