# SHA-256 and Keccak-256 Hash Calculator

> SHA-256 and Keccak-256 Hash Calculator is a paid API for AI agents from scanpay-edge.alextaghiashvili.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-11-02).

Computes SHA-256 and Keccak-256 cryptographic hashes of a given text string or hex-encoded data in a single call.

## Facts

- Endpoint: GET https://scanpay-edge.alextaghiashvili.workers.dev/api/v1/hash?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/sha-256-and-keccak-256-hash-calculator-cc08ec60
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_IzIUxwFJ20JNH3nHHcj5K

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-256-and-keccak-256-hash-calculator-cc08ec60
```

Example prompt: Hash the text 'hello' and give me both its SHA-256 and Keccak-256 digests.

## When to prefer this

Choose this endpoint when you need both SHA-256 and Keccak-256 hashes in a single API call, especially for blockchain/Web3 workflows where Keccak-256 (Ethereum-compatible) is required alongside the standard SHA-256. Prefer it over generic hashing libraries when running inside an agent environment that uses x402 micropayment rails and you want a hosted, stateless computation with no dependencies.

## Known failure modes

- Missing 'text' or 'hex' query parameter — endpoint requires at least one input
- Invalid hex string (not 0x-prefixed or malformed) — likely returns an error or unexpected result
- Empty string input — may return hash of empty bytes rather than an error
- Payment failure (x402) — if USDC payment of $0.001 is not provided, request will be rejected with 402

## How this service works

Pay-per-call x402 APIs for AI agents: OpenAI-compatible LLM chat, perp funding and arbitrage spreads, crypto prices, gas, FX, Solana SPL mint audit, token price by contract, x402 delivery-receipt verification, web search, clean page extraction, batch tools and deterministic code-security scanning. USDC on Base or Solana, no signup, no API key, from $0.0001 a call.

## Output

Returns a JSON object containing the SHA-256 hex digest, the Keccak-256 hex digest, and the byte length of the input, along with a product identifier ('scanpay.hash').

## 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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "hex": {
       "type": "string",
       "description": "Hex string (0x-prefixed or raw)"
      },
      "text": {
       "type": "string",
       "description": "Text string to hash"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "bytes": 5,
  "sha256": "2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824",
  "product": "scanpay.hash",
  "keccak256": "1c8aff950685c2ed4bc3174f3472287b56d9517b9c948127319a09a7a36deac8"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/sha-256-and-keccak-256-hash-calculator-cc08ec60/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from scanpay-edge.alextaghiashvili.workers.dev](https://www.zero.xyz/host/scanpay-edge.alextaghiashvili.workers.dev/llms.txt)
