# ENS Name Resolution & Reverse Lookup

> ENS Name Resolution & Reverse Lookup is a paid API for AI agents from x402-agent-store.rileycraig14.workers.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-12).

Resolves an ENS name to its Ethereum address, or reverse-resolves an 0x address to its primary ENS name

## Facts

- Endpoint: GET https://x402-agent-store.rileycraig14.workers.dev/chain/ens?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/ens-name-resolution-reverse-lookup-543c9210
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_1iEUcIY-YpGzkbNZlukFl

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-name-resolution-reverse-lookup-543c9210
```

Example prompt: What Ethereum address does vitalik.eth resolve to? And while you're at it, can you also reverse-lookup 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 to find its primary ENS name?

## When to prefer this

Use this endpoint when you need to resolve ENS names to Ethereum addresses or reverse-resolve wallet addresses to human-readable ENS names, without needing an API key or signup. Ideal for AI agents that need to enrich on-chain identity data on the fly and can pay $0.001 USDC per call via the x402 protocol on Base.

## Known failure modes

- ENS name does not exist or has no resolver — resolved: false returned
- 0x address has no primary ENS name set — resolved: false returned
- Malformed ENS name or invalid 0x address input — may return error or unresolved result
- Neither 'name' nor 'address' query param provided — ambiguous request
- Network or RPC timeout reading from Ethereum mainnet

## How this service works

Machine-payable data APIs for AI agents — 35 endpoints across web search, on-chain reads, trading data, and AI-visibility. Pay per call in USDC via x402 on Base. No API keys, no signup.

## Output

A JSON object containing the ENS name, the resolved 0x Ethereum address, the query string, the chain (ethereum), the resolution direction (name->address or address->name), a resolved boolean indicating success, and an avatar URL if set.

## 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",
     "properties": {
      "name": {
       "type": "string",
       "description": "ENS name to resolve to an address, e.g. vitalik.eth"
      },
      "address": {
       "type": "string",
       "description": "0x address to reverse-resolve to its primary ENS name"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "name": {
       "type": "string"
      },
      "address": {
       "type": "string"
      },
      "resolved": {
       "type": "boolean"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "name": "vitalik.eth",
  "chain": "ethereum",
  "query": "vitalik.eth",
  "avatar": null,
  "address": "0xd8da6bf26964af9d7eed9e03e53415d37aa96045",
  "resolved": true,
  "direction": "name->address"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/ens-name-resolution-reverse-lookup-543c9210/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-agent-store.rileycraig14.workers.dev](https://www.zero.xyz/host/x402-agent-store.rileycraig14.workers.dev/llms.txt)
