# ENS Namehash & Labelhash Calculator

> ENS Namehash & Labelhash Calculator is a paid API for AI agents from api.x402node.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Computes the ENS namehash (node) and keccak labelhash for a given ENS name like vitalik.eth

## Facts

- Endpoint: GET https://api.x402node.dev/crypto/namehash
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/ens-namehash-labelhash-calculator-de30feae
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Gke-glVErXdU3hpsmMvai

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 ens-namehash-labelhash-calculator-de30feae
```

Example prompt: What's the ENS namehash and labelhash for vitalik.eth? I need to interact with the ENS registry contract.

## When to prefer this

Use this endpoint when you need to compute ENS namehash or labelhash values for use in smart contracts, ENS resolvers, or registry interactions — especially in automated agent workflows where on-the-fly hash derivation is needed without running a local library.

## Known failure modes

- Invalid or malformed ENS name returns an error
- Missing name parameter returns 400 bad request
- Names with unsupported TLDs may produce unexpected hashes
- Network timeout if upstream is unavailable
- Payment not processed results in 402 response

## How this service works

Compute the ENS namehash and keccak labelhash for a name like vitalik.eth. For resolvers, registries and agents working with ENS. ens namehash, labelhash, ens node, name resolution, evm utility Accepts payment on Base or Solana — either network works.

## Output

Returns the ENS namehash (bytes32 node) and the keccak labelhash for the given ENS name, ready for use in ENS resolvers, registries, and smart contract calls.

## 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": [
      "name"
     ],
     "properties": {
      "name": {
       "type": "string",
       "description": "the ENS name, e.g. vitalik.eth (required)"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/ens-namehash-labelhash-calculator-de30feae/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.x402node.dev](https://www.zero.xyz/host/api.x402node.dev/llms.txt)
