# ENS Resolver

> ENS Resolver is a paid API for AI agents from 402.com.tr, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Resolves ENS names to Ethereum addresses (forward) or Ethereum addresses to their primary ENS name (reverse) on mainnet.

## Facts

- Endpoint: GET https://402.com.tr/api/x402/ens-resolve
- 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-resolver-62df972e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_bmzIXiMCi8iUTXB0U7_-8

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-resolver-62df972e
```

Example prompt: What Ethereum address does vitalik.eth resolve to? Also, can you reverse-lookup 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 and tell me its primary ENS name?

## When to prefer this

Use this endpoint when you need ENS resolution on Ethereum mainnet — both forward (name→address) and reverse (address→name) in a single endpoint. Prefer this over building your own ENS resolution when you need a quick, pay-per-call lookup without managing your own Ethereum RPC node. Complement with the Basename resolver (also on 402.com.tr) when Base L2 name resolution is needed instead.

## Known failure modes

- ENS name not registered — returns null or empty address
- Address has no primary ENS name set — returns empty or null name
- Invalid ENS name format — returns error
- Invalid Ethereum address format — returns validation error
- ENS resolution temporarily unavailable due to RPC issues — returns 5xx error

## How this service works

Forward + reverse ENS resolution on Ethereum mainnet: turn vitalik.eth into an address, or an address into its primary ENS name. Complements the Basename resolver for Base.

## Output

Returns the resolved Ethereum address for a given ENS name (forward resolution), or the primary ENS name associated with a given Ethereum address (reverse resolution). Includes the query input, resolution type, and the resolved value.

## 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"
    },
    "pathParams": {
     "type": "object"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "query"
     ],
     "properties": {
      "query": {
       "type": "string",
       "description": "ENS name or address"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/ens-resolver-62df972e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from 402.com.tr](https://www.zero.xyz/host/402.com.tr/llms.txt)
