# pastable-x402 Text Hashing

> pastable-x402 Text Hashing is a paid API for AI agents from pastable-x402.pages.dev, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-14).

Hashes an input string using MD5, SHA-256, and SHA-512 simultaneously, returning all three digests plus byte length.

## Facts

- Endpoint: GET https://pastable-x402.pages.dev/text/hash
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/pastable-x402-text-hashing-1f985cca
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_P09slHQ6v4ZdCnNA-UAuv

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 pastable-x402-text-hashing-1f985cca
```

Example prompt: Can you hash the string 'hello' using UTF-8 encoding and give me the MD5, SHA-256, and SHA-512 digests?

## When to prefer this

Choose this endpoint when you need multiple hash algorithms (MD5, SHA-256, SHA-512) computed simultaneously in a single paid call, saving round-trips compared to separate hashing APIs. Ideal for agents that need to fingerprint, deduplicate, or verify text content and want all common digest formats at once. The x402 micropayment model ($0.02 USDC) makes it suitable for per-operation billing in automated pipelines without subscriptions.

## Known failure modes

- Missing required query parameters 'data' or 'encoding' returns an error
- Invalid encoding value (not utf8, base64, or hex) causes a bad request
- Payment not completed via x402/Base mainnet results in 402 Payment Required
- Malformed base64 or hex input string causes a processing error
- Network timeout on the Cloudflare Pages edge function

## How this service works

Pay-per-call utility APIs for agents: EVM helpers (checksum, unit conversion, keccak), data transforms (CSV to JSON, JSON diff, URL canonicalisation), text tools (hashing, JWT decode), and Bazaar market intelligence. x402 on Base mainnet.

## Output

Returns a JSON object containing the MD5, SHA-256, and SHA-512 hex-encoded digests of the input string, plus the byte length of the input. All three hash algorithms are computed in a single call.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "data",
      "encoding"
     ],
     "properties": {
      "data": {
       "type": "string",
       "description": "string"
      },
      "encoding": {
       "type": "string",
       "description": "utf8|base64|hex"
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "md5": "5d41402abc4b2a76b9719d911017c592",
  "bytes": 5,
  "sha256": "2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824",
  "sha512": "9b71d224bd62f3785d96d46ad3ea3d73319bfbc2890caadae2dff72519673ca72323c3d99ba5c11d7c7acc6e14b8c5da0c4663475c2e5c3adef46f73bcdec043"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/pastable-x402-text-hashing-1f985cca/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from pastable-x402.pages.dev](https://www.zero.xyz/host/pastable-x402.pages.dev/llms.txt)
