# Delx Stable Hash

> Delx Stable Hash is a paid API for AI agents from api.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-13).

Computes a canonical SHA-256 hex digest of a JSON-stable serialization of the input payload, independent of key ordering.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/stable-hash
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-stable-hash-1596a40b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_pE2tfLZiqT7KmtXLEKAnx

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 delx-stable-hash-1596a40b -d '<json body>'
```

Example prompt: Can you give me the canonical SHA-256 hash of this JSON payload — it needs to be key-order-independent so I can use it as a stable fingerprint: {"user":"alice","score":42,"tags":["vip"]}

## When to prefer this

Choose this endpoint when you need a deterministic, key-order-independent SHA-256 fingerprint of a JSON payload — particularly useful in agent pipelines for deduplication, cache keying, or pre-signature fingerprinting where key ordering cannot be guaranteed. Prefer it over client-side hashing when you need a consistent canonical result without shipping or maintaining a JSON-stable serialization library. It is not suitable for hashing binary data, files, or arbitrary text that isn't JSON.

## Known failure modes

- Invalid or malformed JSON input may result in a 400 error
- Empty or missing text field may return an error response
- Payment failure via x402 protocol will prevent the computation from completing
- Extremely large payloads may be rejected or time out

## How this service works

Canonical SHA-256 of JSON-stable payload. Call when you fingerprint agent objects independent of key order. Returns hex digest for $0.001 USDC via x402 on Base. No network, no keys, no retention; first-party local JSON only. Results are advisory; the caller owns budgets, auth, and production controls.

## Output

Returns a hex-encoded SHA-256 digest string computed over the JSON-stable (canonicalized, key-sorted) serialization of the input. The same logical JSON document always produces the same digest regardless of original key order. No data is retained server-side.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "description": "Input field: text."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "hex": "2b3f289029566c30dfbe3601f33bb08822426d388fe46ba0af5591289d67aaff",
  "schema": "delx/util-stable-hash/v1",
  "algorithm": "sha256-canonical"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-stable-hash-1596a40b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.delx.ai](https://www.zero.xyz/host/api.delx.ai/llms.txt)
