# ChainRay ENS Resolve

> ChainRay ENS Resolve is a paid API for AI agents from chainray.online, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-16).

Resolves an ENS name to its associated Ethereum address, or reverse-resolves an Ethereum address to its ENS name

## Facts

- Endpoint: GET https://chainray.online/ens-resolve/%7BnameOrAddress%7D
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/chainray-ens-resolve-7cec6c1b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_YQ3ekPlawCuai1viS1kL6

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 chainray-ens-resolve-7cec6c1b
```

Example prompt: What Ethereum address does vitalik.eth resolve to? Use ChainRay to look it up on-chain.

## When to prefer this

Use this endpoint when you need to resolve ENS names to Ethereum addresses (or vice versa) as part of a blockchain workflow, wallet lookup, or identity verification task. Prefer it over generic RPC calls when you want a pay-per-request, infrastructure-free resolution with no node setup required. Ideal for agents handling Web3 identity, address book enrichment, or DeFi transaction routing.

## Known failure modes

- ENS name not registered or has expired — returns not found or null
- Ethereum address has no reverse ENS record — returns empty result
- Invalid ENS name format or malformed 0x address — returns 400 validation error
- ENS resolver contract unreachable or chain RPC outage — returns 503 or timeout
- Payment not attached or insufficient USDC — returns 402 payment required

## How this service works

The most complete blockchain data and intelligence service for AI agents. 93 endpoints across 46 chains, from gas fees to DeFi analytics, with real-time streams, intent routing, and verifiable proofs. Pay-per-request via x402.

## Output

Returns the resolved Ethereum address for a given ENS name, or the ENS domain name associated with a given Ethereum address, based on on-chain ENS registry data.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "nameOrAddress": "0x1234567890123456789012345678901234567890"
  }
 }
}
```

## 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": [
      "nameOrAddress"
     ],
     "properties": {
      "nameOrAddress": {
       "type": "string",
       "description": "ENS name or Ethereum address"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/chainray-ens-resolve-7cec6c1b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from chainray.online](https://www.zero.xyz/host/chainray.online/llms.txt)
