# ENS Name & Address Resolver

> ENS Name & Address Resolver is a paid API for AI agents from ca-tax-api-mainnet.lxtap.workers.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-23).

Resolves an ENS name (e.g. vitalik.eth) to its Ethereum address and profile records, or performs a reverse lookup from an address to its primary ENS name.

## Facts

- Endpoint: GET https://ca-tax-api-mainnet.lxtap.workers.dev/eth/ens?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/ens-name-address-resolver-f955f886
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_hDY0FHvmsUuHhOxtAHXZY

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-f955f886
```

Example prompt: Look up the ENS name vitalik.eth and give me its Ethereum address plus any profile info like avatar, Twitter, and GitHub stored in its records.

## When to prefer this

Use this endpoint when you need to resolve ENS names to Ethereum addresses or vice versa on Ethereum Mainnet, and also want rich profile metadata (avatar, social handles, description) in a single call. Prefer this over direct RPC calls when you need the convenience of a hosted resolver without setting up your own Ethereum node. Best for identity enrichment, address book building, or verifying wallet ownership tied to a human-readable name.

## Known failure modes

- ENS name does not exist or has no resolver — returns null or empty result
- Address has no primary ENS name set — reverse lookup returns null
- Invalid ENS name format (spaces, wrong pattern) — input validation error
- Invalid Ethereum address format (wrong checksum or length) — input validation error
- ENS resolver contract temporarily unreachable — may return error or timeout
- Name exists but no profile records set — address returned but profile fields empty

## How this service works

Pay-per-call data for AI agents, paid in USDC on Base with x402: token risk checks (rug check) on Base, Ethereum, Arbitrum, Optimism, Polygon and Solana, onchain reads (balances, transactions, gas, contracts, NFTs, whale trades, new pools, ENS and Basenames), ECB exchange rates, and Canadian sales tax and business days.

## Output

Returns the resolved Ethereum address for a given ENS name, plus available profile records such as avatar URL, description, website URL, Twitter handle, and GitHub username. For reverse lookups (address input), returns the primary ENS name associated with 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": [],
     "properties": {
      "name": {
       "type": "string",
       "pattern": "^[^\\s]+\\.[^\\s]+$",
       "description": "ENS name, e.g. vitalik.eth"
      },
      "address": {
       "type": "string",
       "pattern": "^0x[0-9a-fA-F]{40}$",
       "description": "Address for a reverse lookup instead of name"
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "name": "vitalik.eth",
  "address": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
  "records": {
   "url": "https://vitalik.ca",
   "avatar": "https://euc.li/vitalik.eth",
   "com.github": "vbuterin",
   "com.twitter": "VitalikButerin",
   "description": "mi pinxe lo crino tcati"
  },
  "registered": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/ens-name-address-resolver-f955f886/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from ca-tax-api-mainnet.lxtap.workers.dev](https://www.zero.xyz/host/ca-tax-api-mainnet.lxtap.workers.dev/llms.txt)
