# ENS/Basename Resolver & Address Lookup

> ENS/Basename Resolver & Address Lookup is a paid API for AI agents from x402-services-production.up.railway.app, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-14).

Resolves an ENS name or Basename to its underlying wallet address (or vice versa), returning on-chain identity metadata for a given name or 0x address.

## Facts

- Endpoint: POST https://x402-services-production.up.railway.app/api/crypto/ens
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/ens-basename-resolver-address-lookup-e7fade3b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_QQhZb20Ez0OgSPKUmREjD

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-address-lookup-e7fade3b -d '<json body>'
```

Example prompt: Can you resolve vitalik.eth to its actual 0x wallet address for me?

## When to prefer this

Use this endpoint when an agent needs to translate between human-readable ENS/Basename identifiers and raw 0x wallet addresses, or to enrich a known address with its on-chain identity. It is the right choice for pre-transaction identity checks, display name resolution, and any workflow where you need to map a name to an address or vice versa without managing your own ENS RPC connection. Prefer over generic ENS libraries when operating in a pay-per-call, no-API-key environment.

## Known failure modes

- ENS name not registered or expired — returns null or empty resolution
- Address has no reverse ENS record — reverse lookup returns nothing
- Invalid input format (neither valid ENS/Basename nor 0x address) — returns error
- ENS resolution temporarily unavailable due to RPC issues — returns timeout or 5xx
- Basename not found on Base L2 — returns null

## How this service works

Resolve an ENS name or Basename to an address, or reverse-resolve a 0x address to its name + avatar. Send { input }. Human-readable identity for agents.

## Output

Returns the resolved 0x wallet address for a given ENS name or Basename, or the ENS/Basename associated with a given address, along with any available on-chain identity metadata such as avatar, description, or linked records.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "string",
   "description": "An ENS/Basename (e.g. vitalik.eth) or a 0x address"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/ens-basename-resolver-address-lookup-e7fade3b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-services-production.up.railway.app](https://www.zero.xyz/host/x402-services-production.up.railway.app/llms.txt)
