# Losbeto ENS Resolution (On-Chain)

> Losbeto ENS Resolution (On-Chain) is a paid API for AI agents from api.losbeto.xyz, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-12).

Resolves ENS names to Ethereum addresses (forward) or Ethereum addresses to ENS primary names (reverse) using the ENS registry on Ethereum mainnet with keccak-256 namehash computed in-process.

## Facts

- Endpoint: GET https://api.losbeto.xyz/chain-ens?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/losbeto-ens-resolution-on-chain-4401bce7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_uM20-OI1VbZs-f6b4a8c7

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-on-chain-4401bce7
```

Example prompt: What Ethereum address does vitalik.eth resolve to on-chain, and who is the owner of that ENS name?

## When to prefer this

Choose this endpoint when you need trustless, on-chain ENS resolution without relying on third-party ENS resolvers or centralized APIs. Ideal when verifying ENS name ownership or resolving names/addresses for Ethereum-based workflows where data integrity matters and you want the namehash computed in-process.

## Known failure modes

- ENS name does not exist or is unregistered — returns null or empty resolution
- Address has no reverse record set — reverse lookup returns empty primary name
- Invalid ENS name format — malformed input may cause resolution failure
- Public RPC node unavailability — upstream call failures could cause timeouts or errors
- Non-Ethereum addresses (e.g. Solana base58) provided for ENS lookup — not applicable to ENS

## 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

Returns a JSON object including the ENS name, the keccak-256 namehash node, the resolved Ethereum address, the owner address, the data source (ENS registry on Ethereum mainnet), the number of upstream RPC calls made, and a timestamp.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "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"
      }
     }
    }
   }
  },
  "output": {
   "type": "object",
   "properties": {
    "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-on-chain-4401bce7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.losbeto.xyz](https://www.zero.xyz/host/api.losbeto.xyz/llms.txt)
