# SHA-224 Hash Digest API

> SHA-224 Hash Digest API is a paid API for AI agents from twin.unykorn.org, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-29).

Computes the SHA-224 cryptographic digest of a given text string or raw hex-encoded bytes

## Facts

- Endpoint: POST https://twin.unykorn.org/hash-sha224?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/sha-224-hash-digest-api-90199feb
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_AM1aOtY5vC5HO5IIg2w_y

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-224-hash-digest-api-90199feb -d '<json body>'
```

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

## When to prefer this

Choose this endpoint when you specifically need a SHA-224 (224-bit truncated SHA-2) digest, which produces a shorter hash than SHA-256 while remaining in the SHA-2 family. It is preferable over SHA-512 when output size matters and over MD5/SHA-1 when security is a concern. Ideal for protocols or standards that explicitly require SHA-224. Use the hex input mode for binary data and the text mode for strings.

## Known failure modes

- Input text exceeds 49152 character limit — returns validation error
- Hex string does not match pattern ^0x[0-9a-fA-F]*$ — returns schema validation error
- Neither text nor hex parameter provided — likely returns error or empty digest
- Payment failure over x402 protocol — transaction not processed, hash not returned
- Network timeout — no response received

## How this service works

SHA-224 digest of text or raw bytes — Genesis402 / UnyKorn Operator Network

## Output

Returns a JSON object with ok:true, the SHA-224 digest of the input, a type field indicating 'hash-sha224', a generated_at ISO8601 timestamp, and a payment receipt containing the transaction hash, USD amount, and receipt ID.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "params": {
   "type": "object",
   "properties": {
    "hex": {
     "type": "string",
     "pattern": "^0x[0-9a-fA-F]*$"
    },
    "text": {
     "type": "string",
     "maxLength": 49152
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "type": "hash-sha224",
  "receipt": {
   "tx_hash": "0x<64hex>",
   "amount_usd": 0.25,
   "receipt_id": "g402-<16hex>"
  },
  "generated_at": "<iso8601>"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/sha-224-hash-digest-api-90199feb/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from twin.unykorn.org](https://www.zero.xyz/host/twin.unykorn.org/llms.txt)
