# Cryptographic Hash API

> Cryptographic Hash API is a paid API for AI agents from agent-chain-kit-solana.vercel.app, paid per call via x402, $0.0005/call, status unknown (last checked 2026-10-10).

Hashes a text string using a selectable algorithm (SHA-256, SHA-512, SHA-1, or MD5) and returns the hex digest, base64 encoding, and byte count

## Facts

- Endpoint: POST https://agent-chain-kit-solana.vercel.app/v1/hash?utm_source=zero.xyz
- Price: $0.0005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/cryptographic-hash-api-062a2b22
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_7SCZPtKyOAYPZZfgSQ-Vr

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 cryptographic-hash-api-062a2b22 -d '<json body>'
```

Example prompt: Can you compute the SHA-256 hash of the text 'hello world' and give me both the hex and base64 versions?

## When to prefer this

Use this endpoint when you need a quick, pay-per-call cryptographic hash of a text string without setting up an API key. Ideal for AI agents needing deterministic fingerprinting, integrity verification, or checksums on-the-fly using standard algorithms (SHA-256, SHA-512, SHA-1, MD5) within a micropayment workflow.

## Known failure modes

- Missing required 'text' query parameter returns a validation error
- Unsupported algorithm value (not sha256/sha512/sha1/md5) returns a 400 error
- Empty string input may return a valid hash of zero bytes
- Payment not provided or insufficient triggers a 402 Payment Required response
- Method must be GET, HEAD, or DELETE; POST or PUT returns 405

## How this service works

Global current weather, hourly forecasts, foreign-exchange rates, EVM reads, and deterministic utilities for AI agents. Pay per call with MPP or x402; no API key.

## Output

A JSON object containing the hex-encoded hash digest, the base64-encoded hash, the input byte length, and the algorithm used (e.g. sha256).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "text"
     ],
     "properties": {
      "text": {
       "type": "string"
      },
      "algorithm": {
       "enum": [
        "sha256",
        "sha512",
        "sha1",
        "md5"
       ],
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "hex": "2cf24dba5fb0a30e...",
  "bytes": 5,
  "base64": "LPJNul+wow4m6DsqxbninhsWHlwfp0JecwQzYpOLmCQ=",
  "algorithm": "sha256"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/cryptographic-hash-api-062a2b22/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-chain-kit-solana.vercel.app](https://www.zero.xyz/host/agent-chain-kit-solana.vercel.app/llms.txt)
