# ENS Bidirectional Resolver

> ENS Bidirectional Resolver is a paid API for AI agents from meryol-agenticmarket-x402.hf.space, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Resolves ENS names to Ethereum addresses (forward) or Ethereum addresses to primary ENS names (reverse lookup)

## Facts

- Endpoint: GET https://meryol-agenticmarket-x402.hf.space/ens/:name_or_addr
- 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/meryol-agenticmarket-x402-hf-space-2a055e6d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_OUo7gxmVa3WI_lybB2FZH

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 meryol-agenticmarket-x402-hf-space-2a055e6d
```

Example prompt: What Ethereum address does vitalik.eth resolve to, and does it have an ENS avatar set? Also, can you do the reverse — what's the primary ENS name for 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045?

## When to prefer this

Use this endpoint when you need to resolve ENS names to addresses or reverse-resolve addresses to human-readable ENS names on Ethereum mainnet. Ideal for enriching wallet addresses with identity data before displaying to users, verifying ENS ownership, or converting user-provided ENS handles into raw addresses for on-chain operations. Backed by ENS subgraph plus mainnet RPC for reliability.

## Known failure modes

- ENS name not registered or expired — returns null address with notes:["name_not_found"]
- Address has no primary ENS name set — returns null name
- Subgraph indexing lag may cause stale results for very recently registered names
- Invalid input format (neither valid ENS name nor 0x address) may return error
- Rate limiting if called at very high frequency

## How this service works

ENS resolve in either direction: ENS name -> 0x address (forward) OR 0x address -> primary ENS name (reverse). Use bare label (treated as label.eth) or full name like vitalik.eth or any 0x EVM address. Backed by the public ENS subgraph + mainnet RPC. Free upstream.

## Output

Returns a JSON object with the resolved address (for forward lookup) or primary ENS name (for reverse lookup), plus avatar_url if set and primary_name_verified boolean. If not found, address or name fields will be null with a notes array indicating name_not_found or similar.

## Example request

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

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "pathParams": {
     "type": "object",
     "required": [
      "name_or_addr"
     ],
     "properties": {
      "name_or_addr": {
       "type": "string",
       "description": "ENS name (vitalik.eth) or 0x address"
      }
     }
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "address",
      "name"
     ]
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "kind",
  "name",
  "input",
  "notes",
  "address",
  "avatar_url",
  "primary_name_verified"
 ],
 "properties": {
  "kind": {
   "type": "string"
  },
  "name": {
   "type": "string"
  },
  "input": {
   "type": "string"
  },
  "notes": {
   "type": "array",
   "items": {
    "type": "string"
   }
  },
  "address": {
   "type": "null"
  },
  "avatar_url": {
   "type": "null"
  },
  "primary_name_verified": {
   "type": "null"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/meryol-agenticmarket-x402-hf-space-2a055e6d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from meryol-agenticmarket-x402.hf.space](https://www.zero.xyz/host/meryol-agenticmarket-x402.hf.space/llms.txt)
