# ENS / Basename Resolver

> ENS / Basename Resolver is a paid API for AI agents from ai-policy-kit.moneymaker-ai.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-19).

Resolves an ENS name or Basename to its on-chain address and profile records, or performs reverse lookup from an EVM address to its primary name.

## Facts

- Endpoint: GET https://ai-policy-kit.moneymaker-ai.workers.dev/api/ens-resolve?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/ens-basename-resolver-e1fce88d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_jZNNR2WGdYYPdFFvW9BRQ

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-basename-resolver-e1fce88d
```

Example prompt: What wallet address does vitalik.eth resolve to, and does it have any profile info like a Twitter handle or website linked?

## When to prefer this

Choose this endpoint when you need to resolve ENS names or Basenames (*.eth, *.base.eth) to on-chain addresses or retrieve rich profile metadata including social handles and URLs. It supports both forward (name → address) and reverse (address → name) lookups and returns structured JSON including text records. Prefer this over raw RPC calls when you want a clean REST API without managing Web3 provider connections.

## Known failure modes

- Name not registered or expired — resolved:false returned
- Address has no primary ENS name set — reverse_primary_name is null
- Invalid ENS name format — query parameter rejected
- ENS resolver contract unreachable — upstream RPC error
- Basename not yet indexed — may return stale or empty text records

## How this service works

Generate an AI_POLICY.md and a pull request template with an AI-disclosure section for your open-source repo. Free, runs in your browser.

## Output

Returns a JSON object containing the resolved EVM address, Base-specific address, primary reverse name, whether the reverse lookup matches, text records (URL, Twitter handle, description), resolver contract address, and a boolean indicating whether resolution succeeded.

## 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": [],
     "properties": {
      "name": {
       "type": "string",
       "description": "ENS name or Basename, e.g. vitalik.eth or jesse.base.eth"
      },
      "address": {
       "type": "string",
       "description": "or: 0x address for reverse lookup"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "name": "jesse.base.eth",
  "text": {
   "url": "jesse.xyz",
   "com.twitter": "jessepollak",
   "description": "base.eth builder #001"
  },
  "resolved": true,
  "resolver": "0xde9049636F4a1dfE0a64d1bFe3155C0A14C54F31",
  "address_evm": "0x2211d1D0020DAEA8039E46Cf1367962070d77DA9",
  "address_base": "0x2211d1D0020DAEA8039E46Cf1367962070d77DA9",
  "reverse_matches": true,
  "reverse_primary_name": "jesse.base.eth",
  "reverse_primary_name_base": null
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/ens-basename-resolver-e1fce88d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from ai-policy-kit.moneymaker-ai.workers.dev](https://www.zero.xyz/host/ai-policy-kit.moneymaker-ai.workers.dev/llms.txt)
