{"uid":"cap_YPlKKGdKvA8Ke15jFiYVr","slug":"proofkit-hash-sha-256-with-byte-count-receipt-f07b8394","name":"ProofKit Hash — SHA-256 with Byte Count Receipt","description":"Deterministic hashing, RFC-8785 canonical JSON, merkle proofs and Ed25519-signed receipts over x402 (USDC on Base). Runtime 402 behaviour is authoritative over this document. Every declaration here was verified to answer as required before it was written: paid operations answered 402 with a parseable challenge in token atomic units payable to the stated address, free operations answered 200. Routes that failed their probe are absent from this document by design.","url":"https://proofkit.getproofkit.com/hash?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"body":{"type":"object"},"type":{"type":"string","const":"http"},"method":{"enum":["GET","POST","PUT","PATCH"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"queryParams":{"type":"object"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"bytes":5,"sha256":"2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_13S_7i4l2g1PELMnR-HQC","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes a deterministic SHA-256 hash and byte count for arbitrary input data, returning a signed, verifiable receipt","exampleAgentPrompt":"Hash this JSON payload using ProofKit and give me the SHA-256 digest and byte count so I have a signed, offline-checkable receipt: {\"user\":\"alice\",\"action\":\"purchase\",\"amount\":42}.","exampleUseCases":[{"title":"Audit trail for API responses","prompt":"Take the JSON response I just got from the payments API and hash it with ProofKit so I have a tamper-evident fingerprint I can verify offline later — show me the SHA-256 and byte count."},{"title":"Content integrity before storage","prompt":"Before I store this contract JSON in the database, run it through ProofKit to get its SHA-256 hash and byte count so I can prove the document wasn't altered after this point."},{"title":"Merkle leaf generation for batch verification","prompt":"I need to generate a deterministic SHA-256 hash for each of these three event records so I can build a merkle tree — use ProofKit to hash this first record: {\"eventId\":\"evt_001\",\"ts\":1718000000,\"action\":\"login\"}."}],"resultDescription":"Returns a JSON object with two fields: 'sha256' (a hex-encoded SHA-256 digest of the input) and 'bytes' (the integer byte length of the hashed content). The receipt is deterministic and can be verified offline without re-calling the service.","failureModes":["Missing required 'input' field returns a 400-level validation error","Malformed or unparseable body type may cause processing failure","Payment challenge (402) returned if x402 payment header is absent or invalid","Non-supported HTTP method enum value rejected at input validation","Empty body may return a hash of zero bytes depending on implementation"],"whenToPreferThis":"Choose this endpoint when you need a paid, receipted, and potentially Ed25519-signed SHA-256 hash that is auditable and offline-verifiable — especially in contexts requiring cryptographic proof of computation (e.g. merkle trees, audit logs, content-addressed storage). Prefer free local hashing libraries when no signed receipt is needed.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-20T12:36:07.515Z","isFirstParty":false,"canonicalSlug":"proofkit-hash-sha-256-with-byte-count-receipt-f07b8394"}