# AgentResolver ENS Namehash

> AgentResolver ENS Namehash is a paid API for AI agents from agentresolver.vercel.app, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-19).

Computes the ENS namehash (EIP-137) for a given ENS name string

## Facts

- Endpoint: POST https://agentresolver.vercel.app/api/ens-namehash
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentresolver-ens-namehash-594b2ad3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_etf4G0viXnv15UR53gziY

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 agentresolver-ens-namehash-594b2ad3 -d '<json body>'
```

Example prompt: Can you compute the ENS namehash for 'myproject.eth' so I can use it to query the ENS registry on-chain?

## When to prefer this

Use this endpoint when you need to programmatically derive the EIP-137 namehash for any ENS name, especially when preparing on-chain transactions or smart contract calls that require the node identifier rather than the human-readable name.

## Known failure modes

- Empty or missing name field returns validation error
- Name exceeding 255 characters rejected
- Malformed or invalid ENS label format may return an error
- Service unavailable returns 5xx error
- Payment not provided returns 402 Payment Required

## How this service works

Verify an x402 endpoint before paying: live payTo, USDC quote, network, asset, resource binding, TLS and endpoint safety for $0.001 on Base or Solana.

## Output

A JSON object containing the computed EIP-137 namehash (hex string) for the provided ENS name, which can be used as a node identifier when interacting with ENS registry and resolver smart contracts.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "name": {
   "type": "string",
   "maxLength": 255,
   "minLength": 1
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {}
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentresolver-ens-namehash-594b2ad3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentresolver.vercel.app](https://www.zero.xyz/host/agentresolver.vercel.app/llms.txt)
