# ProofKit Hash — SHA-256 with Byte Count Receipt

> ProofKit Hash — SHA-256 with Byte Count Receipt is a paid API for AI agents from proofkit.getproofkit.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-11-20).

Computes a deterministic SHA-256 hash and byte count for arbitrary input data, returning a signed, verifiable receipt

## Facts

- Endpoint: POST https://proofkit.getproofkit.com/hash?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/proofkit-hash-sha-256-with-byte-count-receipt-f07b8394
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_YPlKKGdKvA8Ke15jFiYVr

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability proofkit-hash-sha-256-with-byte-count-receipt-f07b8394 -d '<json body>'
```

Example prompt: 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}.

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

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.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "bytes": 5,
  "sha256": "2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/proofkit-hash-sha-256-with-byte-count-receipt-f07b8394/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from proofkit.getproofkit.com](https://www.zero.xyz/host/proofkit.getproofkit.com/llms.txt)
