# Losbeto ENS Resolution (chain-ens)

> Losbeto ENS Resolution (chain-ens) is a paid API for AI agents from markets.losbeto.xyz, paid per call via x402, $0.002/call, status unknown (last checked 2026-11-19).

Resolves ENS names to Ethereum addresses (forward) or addresses to ENS primary names (reverse) on-chain, with no trusted third parties beyond public RPCs.

## Facts

- Endpoint: GET https://markets.losbeto.xyz/chain-ens?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/losbeto-ens-resolution-chain-ens-a8d12805
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_hbZ0giXSJbgSwOXdIxVar

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 losbeto-ens-resolution-chain-ens-a8d12805
```

Example prompt: Can you resolve the ENS name vitalik.eth to its Ethereum address, and also tell me who owns it?

## When to prefer this

Choose this endpoint when you need trustless, on-chain ENS resolution without relying on centralized third-party resolvers. It handles both forward (name→address) and reverse (address→name) lookups and works with EVM 0x addresses as well as Solana base58 addresses. Prefer it over centralized ENS APIs when you need transparent namehash computation and verifiable results from public RPCs.

## Known failure modes

- ENS name not found or not registered — returns null or empty result
- Address has no primary ENS name set — reverse lookup returns empty
- Invalid address format (neither valid Solana base58 nor EVM 0x) — returns error
- RPC node unavailable or rate-limited — may return a timeout or upstream error
- Name expired or recently transferred — stale resolution data possible

## How this service works

OpenAI-compatible LLM gateway at $0.005/call — change base_url, pay in USDC. Plus pay-per-call market data: multi-oracle price consensus, sentiment, forex, equities, commodities, Brazil macro (BCB/B3) and crypto. No API keys, no accounts. USDC on Base, Solana, Algorand and Polygon via x402.

## Output

A JSON object containing the resolved Ethereum address (for forward lookups) or the ENS primary name (for reverse lookups), along with the owner of the ENS name and the keccak-256 namehash computed in-process. Resolution is performed directly against the ENS registry on Ethereum mainnet.

## 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"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "address",
      "name"
     ],
     "properties": {
      "name": {
       "type": "string",
       "description": "Entity name to screen against OFAC-SDN"
      },
      "address": {
       "type": "string",
       "description": "Wallet address — Solana base58 or EVM 0x"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "description": "ENS resolution done on-chain: forward (name → address, with owner) or reverse (address → primary name) via the ENS registry on Ethereum mainnet. Keccak-256 namehash computed in-process — zero trusted third parties beyond public RPCs."
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/losbeto-ens-resolution-chain-ens-a8d12805/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from markets.losbeto.xyz](https://www.zero.xyz/host/markets.losbeto.xyz/llms.txt)
