{"uid":"cap_sLHZLrUHQgx1YbITwANjB","slug":"x402-delivery-hash-check-c7162846","name":"X402 Delivery Hash Check","description":"X402 Delivery Hash Check: X402 Delivery Hash Check verifies delivered text against a caller-supplied sha-256 digest from bounded caller-supplied values without an external provider. Call X402 Delivery Hash Check before paying for or accepting an x402 or agent delivery assembled from caller-supplied challenge and result metadata. Returns contract-specific checks, normalized evidence, mismatch reasons, and an explicit acceptance or rejection status for X402 Delivery Hash Check as versioned determ…","url":"https://api.delx.ai/api/v1/x402/x402-delivery-hash-check","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","maxLength":8192,"description":"Text supplied to X402 Delivery Hash Check; used only for this bounded calculation and processed in memory without retention."},"expected_sha256":{"type":"string","maxLength":8192,"description":"Expected Sha256 supplied to X402 Delivery Hash Check; used only for this bounded calculation and processed in memory without retention."}}},"responseSchema":{"type":"json","example":{"result":{"matched":false,"actual_sha256":"633163569ade0beccda175c1e30d98ad117e7dfb0197ff7889836a9de9d3f823","expected_sha256":"7ef67e6a0c33e752d9848702556ca7c63ce63718b2e62b10d1b1d2386e4db0cc"},"schema":"delx/util-x402-delivery-hash-check/v1","status":"advisory","evidence":{"retained":false,"input_sha256":"ba733049f9eb88f065a3f19eafada98c9f92d558213695771252332799ffe285","external_calls":0},"operation":"delivery_contract:x402_delivery_hash_check"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_P-2j0IfCc_SxD8BrSTL6b","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Verifies delivered text against a caller-supplied SHA-256 digest to accept or reject an x402 agent delivery before payment or acceptance","exampleAgentPrompt":"Before we accept this delivery and pay, check if the text 'The quarterly report shows 12% revenue growth...' matches the expected SHA-256 hash 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855' — I need a clear accept or reject with any mismatch reasons.","exampleUseCases":[{"title":"Pre-payment integrity gate for agent results","prompt":"Before releasing the x402 payment, verify that this delivered text — 'Here is the summarized research: AI adoption grew 34% in 2024...' — matches the expected hash 'a9f3d2c8b1e047f6...'; give me a clear accept or reject and tell me why if it fails."},{"title":"Tamper detection on delivered agent content","prompt":"An agent just handed me a document claiming its SHA-256 is '2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824' — can you check the actual text 'hello world' against that hash and confirm whether it was tampered with?"},{"title":"Automated x402 delivery audit before settlement","prompt":"I'm automating delivery acceptance for my agent pipeline — run a hash check on this result text 'Order confirmed: 500 units at $12.50 each' against expected digest 'b94d27b9934d3e08a52e52d7da7dabfac484efe04294e576f432' and tell me if I should accept or reject it with the full mismatch details."}],"resultDescription":"Returns an explicit accept or reject status for the delivery, contract-specific validation checks, normalized evidence about the hash comparison, and detailed mismatch reasons if the computed SHA-256 of the supplied text does not match the expected digest — all as a versioned deterministic response with no external calls or data retention.","failureModes":["Malformed or non-hexadecimal expected_sha256 string returns a validation error","Text exceeding 8192 characters is rejected with a length constraint error","Missing required fields (text or expected_sha256) return a 400 bad request","Hash mismatch returns a rejection status with specific mismatch reasons rather than an error — this is expected behavior","Extremely large payloads near the limit may add latency"],"whenToPreferThis":"Use this endpoint when you need a deterministic, in-memory, no-retention SHA-256 integrity check on an x402 or agent delivery before paying or accepting — especially when you cannot trust the delivery source and need explicit accept/reject verdicts with mismatch evidence. Prefer this over ad-hoc hashing when you need structured rejection reasons and normalized evidence suitable for audit logs or automated pipeline gates.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:41:37.693Z","isFirstParty":false}