# ENS & Basenames Resolver

> ENS & Basenames Resolver is a paid API for AI agents from agents.torbrooknews.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-13).

Resolves ENS and Basenames (e.g. vitalik.eth, jesse.base.eth) to wallet addresses with profile records, or reverse-resolves a 0x address to its primary name.

## Facts

- Endpoint: GET https://agents.torbrooknews.com/v1/ens?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/ens-basenames-resolver-99185020
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_i0wRePTvdlBeOqfVrjuBy

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-basenames-resolver-99185020
```

Example prompt: Can you look up vitalik.eth and tell me what wallet address it resolves to, plus grab the avatar and Twitter handle from the ENS profile records?

## When to prefer this

Use this endpoint when you need to resolve ENS names or Basenames (*.eth, *.base.eth) to wallet addresses or fetch on-chain profile metadata. Prefer it over generic Web3 libraries when you need a simple REST call without setting up an Ethereum provider. Also ideal for reverse-resolving 0x addresses to human-readable names in display contexts.

## Known failure modes

- Name not found or unregistered — resolver returns null or empty result
- Invalid input format — malformed 0x address or unsupported TLD
- No reverse record set — address has no primary ENS name configured
- Network or RPC error contacting ENS resolver
- Rate limiting or payment failure due to x402 payment not processing

## How this service works

Crypto name lookup: resolve ENS and Basenames (vitalik.eth, jesse.base.eth) to a wallet address with avatar, url, twitter and description records, or reverse-resolve a 0x address to its primary name.

## Output

Returns the resolved wallet address (0x) for a given ENS or Basename, along with available profile records including avatar URL, linked URL, Twitter handle, and description text. For reverse lookups (0x address input), returns the primary ENS or Basename registered to that address.

## 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": [
      "q"
     ],
     "properties": {
      "q": {
       "type": "string",
       "description": "Name (vitalik.eth) or 0x 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-basenames-resolver-99185020/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.torbrooknews.com](https://www.zero.xyz/host/agents.torbrooknews.com/llms.txt)
