# Delx Bytes SHA-256 Base64

> Delx Bytes SHA-256 Base64 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-15).

Computes a SHA-256 hash of base64-encoded bytes and returns the hex digest along with the byte count.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/bytes-sha256-b64
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-bytes-sha-256-base64-4ad6dce6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_c0yBgU9SDphOri4yFjBOn

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-bytes-sha-256-base64-4ad6dce6 -d '<json body>'
```

Example prompt: Can you compute the SHA-256 hash of this base64-encoded data: 'aGVsbG8='? I need the hex digest to verify integrity before storing it.

## When to prefer this

Choose this endpoint when you need to compute a SHA-256 hash of binary data that is already in base64-encoded form — common after reading files, images, or binary payloads from APIs that return base64. It combines base64 decoding and SHA-256 hashing in a single call, saving a step compared to decoding locally first. Prefer over generic hashing services when working within the Delx agent infrastructure ecosystem where x402 micropayment billing is already in place.

## Known failure modes

- Invalid base64 string causes decoding error
- Empty or missing 'base64' field returns validation error
- Malformed JSON request body returns 400
- Very large payloads may exceed size limits
- Non-string values for 'base64' field rejected

## How this service works

SHA-256 of base64-decoded bytes. Call when hashing binary payloads agents already hold as base64. Returns sha256 and nbytes as deterministic JSON for $0.001 USDC via x402 on Base. First-party local math only—no RPC, live market feed, API keys, storage, or mediagen. Advisory only; the caller owns capital, risk, and production controls.

## Output

Returns a JSON object containing the SHA-256 hex digest of the decoded bytes ('sha256'), the number of bytes in the decoded payload ('nbytes'), and a schema version identifier ('schema'). Example: {nbytes: 5, schema: 'delx/util-bytes-sha256-b64/v1', sha256: '2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824'}.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "base64": {
   "type": "string",
   "description": "Base64-encoded bytes"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "nbytes": 5,
  "schema": "delx/util-bytes-sha256-b64/v1",
  "sha256": "2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-bytes-sha-256-base64-4ad6dce6/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)
