# SHA-1 Hash / Digest Endpoint

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

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

## Facts

- Endpoint: POST https://twin.unykorn.org/hash-sha1?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/sha-1-hash-digest-endpoint-fbda1f25
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_k30eiOJp2RrlaNwo24Csc

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-1-hash-digest-endpoint-fbda1f25 -d '<json body>'
```

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

## When to prefer this

Choose this endpoint when you need a fast, paid, on-demand SHA-1 digest of arbitrary text or raw bytes and want an auditable receipt tied to a blockchain payment. It is useful in agentic workflows requiring cryptographic hashing with verifiable billing, especially for EVM-adjacent tooling pipelines already using the UnyKorn operator network.

## Known failure modes

- Input text exceeds 49152 character limit — returns validation error
- Hex string does not match the required 0x-prefixed pattern — returns schema error
- Neither text nor hex param provided — likely returns an error or empty digest
- Payment failure via x402 protocol — endpoint returns 402 before processing
- Network timeout contacting the UnyKorn operator node

## How this service works

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

## Output

Returns a JSON object with ok: true, the SHA-1 digest result, a receipt containing the blockchain transaction hash, USD amount charged, and a unique receipt ID, plus a generated_at ISO 8601 timestamp.

## 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-sha1",
  "receipt": {
   "tx_hash": "0x<64hex>",
   "amount_usd": 0.001,
   "receipt_id": "g402-<16hex>"
  },
  "generated_at": "<iso8601>"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/sha-1-hash-digest-endpoint-fbda1f25/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)
