# ENS Resolve — .eth Name to Address (and Reverse)

> ENS Resolve — .eth Name to Address (and Reverse) is a paid API for AI agents from scanpay-edge.alextaghiashvili.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-11-01).

Resolves a .eth ENS name to its Ethereum address, or reverse-resolves an Ethereum address to its primary ENS name, via the Ethereum registry and resolver.

## Facts

- Endpoint: GET https://scanpay-edge.alextaghiashvili.workers.dev/api/v1/ens?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/ens-resolve-eth-name-to-address-and-reverse-5fdf1bff
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_lL58mBBS6wu8K2IM5Px-9

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-resolve-eth-name-to-address-and-reverse-5fdf1bff
```

Example prompt: What Ethereum address does vitalik.eth resolve to? And can you also reverse-check what ENS name is set as the primary for that address?

## When to prefer this

Use this endpoint when you need to resolve or reverse-resolve ENS .eth names to Ethereum addresses in real time, particularly in Web3 workflows where human-readable names must be converted to wallet addresses before transactions or identity checks. Prefer it over generic blockchain RPC calls when you want a simple pay-per-call API without managing your own Ethereum node or ENS library.

## Known failure modes

- ENS name not registered or has no resolver set — returns null or error
- Address has no primary ENS name set — returns empty/null name
- Invalid input format (neither valid .eth name nor valid 0x address) — returns validation error
- ENS registry or RPC node temporarily unavailable — returns 5xx error
- Rate limiting or payment failure — returns 402 or 429

## How this service works

ENS lookup: resolve an ENS name to an address, or reverse-resolve a 0x address to its primary ENS name via the Ethereum registry and resolver, with forward verification. Supply name OR address; address takes precedence.

## Output

Returns the resolved Ethereum address for a given .eth name, or the primary ENS name for a given Ethereum address, drawn from the live Ethereum ENS registry and resolver contracts.

## 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",
     "examples": [
      {
       "name": "vitalik.eth"
      },
      {
       "address": "0xd8da6bf26964af9d7eed9e03e53415d37aa96045"
      },
      {
       "name": "0xd8da6bf26964af9d7eed9e03e53415d37aa96045"
      }
     ],
     "properties": {
      "name": {
       "type": "string",
       "description": "ENS name or 0x address"
      },
      "address": {
       "type": "string",
       "description": "Reverse lookup; takes precedence over name"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "found": true,
  "address": "0xd8da6bf26964af9d7eed9e03e53415d37aa96045",
  "network": "ethereum",
  "product": "scanpay.ens",
  "resolver": "0x231b0ee14048e9dccd1d247744d114a4eb5e8e63",
  "verified": true,
  "price_usd": 0.001,
  "reverse_name": "vitalik.eth"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/ens-resolve-eth-name-to-address-and-reverse-5fdf1bff/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from scanpay-edge.alextaghiashvili.workers.dev](https://www.zero.xyz/host/scanpay-edge.alextaghiashvili.workers.dev/llms.txt)
