Cryptographic verification of the offer-receipt extension of x402
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 side, checks whether the offer has expired and whether the receipt timestamps are plausible against sta
Paid test badge: not yet. The checks above are free: we call the tool without paying and read the payment request it sends back. The Verified badge needs paid calls whose answers match the promised output, and nobody can buy a badge.
Endpoint
POST https://x402.halowerk.com/receipt/verify
| Category | Everything else |
|---|---|
| Provider host | x402.halowerk.com |
| Networks | eip155:8453 |
| Payment schemes | exact |
| Self-reported calls, 30 days | 1 from 1 payers (the provider's figure, not ours) |
Our checks, last 30 days
| Day | Result | HTTP | Asked | Time |
|---|---|---|---|---|
| 2026-11-27 | valid payment request | 402 | $0.003 | 1179 ms |
| 2026-11-26 | valid payment request | 402 | $0.003 | 1181 ms |
| 2026-11-25 | valid payment request | 402 | $0.003 | 1339 ms |
| 2026-11-24 | valid payment request | 402 | $0.003 | 1193 ms |
| 2026-11-23 | valid payment request | 402 | $0.003 | 1188 ms |
Example input (from the provider)
{
"body": {
"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": "0x6b2703e77345fc7dae18f74b8851c9c995ffe74005eab9b9a52f9e86743fac6b033d42ba6005714d00bc40a5624405ba478832ab52bc7159217fec09a383f5bc1b"
}
},
"bodyType": "json",
"method": "POST",
"type": "http"
}
Promised output schema (from the provider)
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"body": {
"additionalProperties": false,
"properties": {
"expected_payer": {
"description": "Address you expected to have paid. When given, the receipt payer is compared against it.",
"pattern": "^0x[0-9a-fA-F]{40}$",
"type": "string"
},
"format": {
"description": "Signature method, if the offer object does not name it. eip712 is what the offer-receipt extension produces.",
"enum": [
"eip712",
"jws",
"eip191"
],
"type": "string"
},
"max_receipt_age_seconds": {
"default": 3600,
"description": "How old a receipt may be before its timestamps are called implausible.",
"maximum": 2592000,
"minimum": 1,
"type": "integer"
},
"offer": {
"description": "The signed offer as {format, payload, signature}, or the bare offer payload with version, resourceUrl, scheme, network, asset, payTo, amount and validUntil \u2014 then pass signature and format separately.",
"type": "object"
},
"public_key": {
"description": "Public key as a JWK, required for jws signatures whose key identifier cannot be resolved from the token itself.",
"type": "object"
},
"receipt": {
"description": "Optional signed receipt as {format, payload, signature}, or the bare receipt payload with version, network, resourceUrl, payer, issuedAt and transaction.",
"type": "object"
},
"receipt_format": {
"description": "Signature method of the receipt, if the receipt object does not name it.",
"enum": [
"eip712",
"jws",
"eip191"
],
"type": "string"
},
"receipt_signature": {
"description": "Signature of the receipt, if it is not inside the receipt object.",
"maxLength": 8192,
"type": "string"
},
"signature": {
"description": "Signature of the offer, if it is not inside the offer object.",
"maxLength": 8192,
"type": "string"
}
},
"required": [
"offer"
],
"type": "object"
},
"bodyType": {
"enum": [
"json",
"form-data",
"text"
],
"type": "string"
},
"method": {
"enum": [
"POST",
"PUT",
"PATCH"
],
"type": "string"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method",
"bodyType",
"body"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}