# BLAKE2s-256 Hash Digest

> BLAKE2s-256 Hash Digest 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 a BLAKE2s-256 cryptographic hash digest from either a UTF-8 text string or raw hex-encoded bytes

## Facts

- Endpoint: POST https://twin.unykorn.org/hash-blake2s256?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/blake2s-256-hash-digest-32241208
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_HKHE1nKfW6llHoV2v2Y72

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 blake2s-256-hash-digest-32241208 -d '<json body>'
```

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

## When to prefer this

Choose this endpoint when you need a BLAKE2s-256 hash specifically — preferred for speed-sensitive or resource-constrained environments where BLAKE2s (32-byte output, optimized for 32-bit platforms) is the required algorithm. Use over SHA-256 or BLAKE2b when the target system or protocol explicitly specifies BLAKE2s-256, such as certain blockchain protocols, zero-knowledge proof systems, or embedded contexts. Suitable for both text and binary (hex-encoded) inputs.

## Known failure modes

- Input exceeds 49152 character limit for text — returns validation error
- Hex string does not match pattern ^0x[0-9a-fA-F]*$ — returns schema validation error
- Both hex and text fields omitted — ambiguous or empty input error
- Payment failure via x402 protocol — endpoint returns 402 before processing
- Network timeout on the UnyKorn node — returns gateway error

## How this service works

BLAKE2s-256 digest of text or raw bytes — Genesis402 / UnyKorn Operator Network

## Output

Returns a JSON object with ok:true, the hash type ('hash-blake2s256'), and a receipt object containing the transaction hash, USD amount charged, and a unique receipt ID. The BLAKE2s-256 digest itself is included in the response alongside generation 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-blake2s256",
  "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/blake2s-256-hash-digest-32241208/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)
