# Crypto Hash & ENS Utility (x402helper.xyz)

> Crypto Hash & ENS Utility (x402helper.xyz) is a paid API for AI agents from x402helper.xyz, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-31).

Computes cryptographic hashes and Ethereum-specific encodings (keccak256, sha256, function selectors, event topics, ENS namehash/labelhash) for a given input string, paid via x402 USDC micropayment.

## Facts

- Endpoint: GET https://x402helper.xyz/89e509/crypto/hash?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/crypto-hash-ens-utility-x402helper-xyz-682f9af2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ygFGpLrGtrgWLM3J0Aug8

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 crypto-hash-ens-utility-x402helper-xyz-682f9af2
```

Example prompt: Can you compute the keccak256 hash of the UTF-8 string 'hello world' for me?

## When to prefer this

Choose this endpoint when you need a quick, on-demand cryptographic hash or Ethereum-specific encoding (especially ENS namehash/labelhash or Solidity selectors) without running local code. It is particularly useful for AI agents operating in serverless or sandboxed environments that cannot execute JavaScript or Solidity libraries directly, and when the $0.002 per-call USDC micropayment via x402 is acceptable.

## Known failure modes

- Unsupported algorithm value returns an error (only keccak256, sha256, selector, event_topic, namehash, labelhash are accepted)
- Missing required query params (algo or input) returns a validation error
- Invalid hex input when encoding is set to 'hex' causes a parsing error
- x402 payment failure or insufficient USDC balance blocks the request
- Malformed ENS name input may produce unexpected namehash results

## How this service works

X402 micropayments server — AI agents pay USDC for OFAC screening, rates, and billing verification.

## Output

A JSON object with a 'success' boolean and a 'result' object containing the computed hash or encoding value (e.g. keccak256 digest, sha256 hex, 4-byte selector, event topic, namehash, or labelhash) for the given input and algorithm.

## 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",
     "required": [
      "algo",
      "input"
     ],
     "properties": {
      "algo": {
       "enum": [
        "keccak256",
        "sha256",
        "selector",
        "event_topic",
        "namehash",
        "labelhash"
       ],
       "type": "string",
       "default": null
      },
      "input": {
       "type": "string",
       "default": null,
       "description": "String / signature / ENS name / 0x-hex"
      },
      "encoding": {
       "enum": [
        "utf8",
        "hex"
       ],
       "type": "string",
       "default": null,
       "description": "How to read `input` for keccak256/sha256 (default utf8)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {},
  "success": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/crypto-hash-ens-utility-x402helper-xyz-682f9af2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402helper.xyz](https://www.zero.xyz/host/x402helper.xyz/llms.txt)
