# SHA-256 Hash Computation API

> SHA-256 Hash Computation API is a paid API for AI agents from x402-canary.nicolas-x402-16f380a7.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-16).

Computes a SHA-256 cryptographic hash digest of an input text string and returns the hex digest along with algorithm metadata.

## Facts

- Endpoint: POST https://x402-canary.nicolas-x402-16f380a7.workers.dev/v1/hash/sha256
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/sha-256-hash-computation-api-f85a64aa
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Lw_R71vXi8yS7Mc7D1y_S

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 sha-256-hash-computation-api-f85a64aa -d '<json body>'
```

Example prompt: Can you compute the SHA-256 hash of the text 'Hello, world!' for me?

## When to prefer this

Choose this endpoint when you need a quick, pay-per-call SHA-256 hash of a text string without setting up any local crypto library, or when operating inside an agent/workflow that already uses the x402 micropayment protocol for tool calls. It is ideal for coding agents that need deterministic checksums as part of a larger pipeline.

## Known failure modes

- Input text exceeds 262,144 character limit — request rejected
- Missing or malformed request body — likely 400 error
- Payment not provided or insufficient — 402 Payment Required response via x402 protocol
- Service unavailable on Cloudflare Workers edge — 5xx error

## How this service works

Free need-to-tool routing plus pay-per-call npm docs and TypeScript API signatures, npm breaking-change diffs, JavaScript-rendered browser snapshots and deterministic coding-agent checks via AgentCash/x402.

## Output

Returns a JSON object with a `data` field containing the `digest` (hex-encoded SHA-256 hash string) and `algorithm` (always 'sha256'), plus a `meta` field with `engine` set to 'hash'.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "maxLength": 262144
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {
   "digest": "...",
   "algorithm": "sha256"
  },
  "meta": {
   "engine": "hash"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/sha-256-hash-computation-api-f85a64aa/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-canary.nicolas-x402-16f380a7.workers.dev](https://www.zero.xyz/host/x402-canary.nicolas-x402-16f380a7.workers.dev/llms.txt)
