{"slug":"x402-halowerk-com-receipt-verify-a5e3d6","title":"Cryptographic verification of the offer-receipt extension of x402","host":"x402.halowerk.com","method":"POST","resource":"https://x402.halowerk.com/receipt/verify","category":"other","description":"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 of","price_listed":0.003,"price_asked":0.003,"state":"answering","state_label":"Answering","checks_7d":5,"answered_7d":5,"latency_ms_median":1188,"reported_calls_30d":1,"reported_payers_30d":1,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"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"},"output_schema":{"$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 — 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"},"history":[{"day":"2026-11-27","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":1179,"error":null},{"day":"2026-11-26","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":1181,"error":null},{"day":"2026-11-25","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":1339,"error":null},{"day":"2026-11-24","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":1193,"error":null},{"day":"2026-11-23","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":1188,"error":null}],"description_full":"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","last_updated":"2026-11-23T10:30:47.869Z","schemes":["exact"]}