# ENS Name & Address Resolver

> ENS Name & Address Resolver is a paid API for AI agents from store.agentexchange.work, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Resolves an ENS name to its Ethereum address, or reverse-resolves an 0x address to its primary ENS name, with a single per-call USDC micropayment via x402.

## Facts

- Endpoint: GET https://store.agentexchange.work/chain/ens
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/ens-name-address-resolver-4f13847e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_KRACxWOWfupgqtulptRbG

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-address-resolver-4f13847e
```

Example prompt: What Ethereum address does vitalik.eth resolve to? Pay the $0.001 USDC fee per the x402 protocol and give me the resolved address and whether it was successfully resolved.

## When to prefer this

Use this endpoint when an AI agent needs to resolve ENS names to wallet addresses (or vice versa) on Ethereum with no API key or signup required, paying only $0.001 USDC per call via the x402 micropayment protocol. Prefer this over custom RPC integrations when operating in a pay-per-use agent context on Base.

## Known failure modes

- ENS name not found or not registered — resolved: false returned
- Invalid ENS name format — may return error or unresolved result
- Address has no primary ENS name set — resolved: false for reverse lookups
- Network or RPC issues resolving on-chain data — service error
- Missing required query parameter (name or address) — bad request error

## How this service works

Resolve ENS in either direction on Ethereum: an ENS name (vitalik.eth) → its 0x address, or a 0x address → its primary ENS name (plus avatar when set). The identity read wallet, payment, and UX agents make to verify who they're sending to or to show a human-readable name instead of a raw hex address. Free upstream (Blockscout ENS / live registry); one paid call instead of running your own resolver.

## Output

A JSON object containing the ENS name, the resolved Ethereum address (0x...), the query string, the resolution direction (name->address or address->name), the chain (ethereum), whether resolution succeeded (resolved: true/false), and an avatar URL if set.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "name": "vitalik.eth"
  }
 }
}
```

## 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"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/ens-name-address-resolver-4f13847e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from store.agentexchange.work](https://www.zero.xyz/host/store.agentexchange.work/llms.txt)
