# x402 Bazaar ENS Resolver

> x402 Bazaar ENS Resolver is a paid API for AI agents from api.relai.fi, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-12).

Resolves Ethereum Name Service (ENS) names to addresses (forward) or addresses to ENS names (reverse) on Ethereum mainnet, paid via x402 micropayment.

## Facts

- Endpoint: POST https://api.relai.fi/relay/1782567677091/api/x402/ens-resolve?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-bazaar-ens-resolver-018eee9a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_SIC8qGV9LMEE3S9NzldyU

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 x402-bazaar-ens-resolver-018eee9a -d '<json body>'
```

Example prompt: What Ethereum address does vitalik.eth resolve to? Also, can you do the reverse and tell me the primary ENS name for 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045?

## When to prefer this

Use this endpoint when you need to resolve ENS names on Ethereum mainnet specifically. Prefer this over the Basename resolver when dealing with .eth names (not .base.eth or Coinbase Basenames). Ideal for identifying wallets by human-readable names or enriching address data with ENS identity in any Ethereum-focused application.

## Known failure modes

- ENS name not registered or expired — returns null or error
- Address has no primary ENS name set — returns null
- Invalid ENS name format — returns validation error
- Invalid Ethereum address format — returns bad request error
- Payment not provided or insufficient — returns HTTP 402 with payment requirements
- Network or RPC issues querying Ethereum mainnet — returns service error

## How this service works

Forward + reverse ENS resolution on Ethereum mainnet: turn vitalik.eth into an address, or an address into its primary ENS name. Complements the Basename resolver for Base. Paid via x402: $0.005 in USDC on Base (eip155:8453) to 0x973a31858f4d2125f48c880542da11a2796f12d6. Returns 402 with payment requirements; pay and retry.

## Output

Returns the resolved Ethereum address for a given ENS name (forward resolution), or the primary ENS name associated with a given Ethereum address (reverse resolution), sourced from Ethereum mainnet ENS registry.

## 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"
    },
    "pathParams": {
     "type": "object"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "query"
     ],
     "properties": {
      "query": {
       "type": "string",
       "description": "ENS name or address"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-bazaar-ens-resolver-018eee9a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.relai.fi](https://www.zero.xyz/host/api.relai.fi/llms.txt)
