# OneSource ENS Resolver

> OneSource ENS Resolver is a paid API for AI agents from skills.onesource.io, paid per call via x402, $0.005000/call, status unknown (last checked 2026-09-13).

Resolves a .eth name to its Ethereum address or an Ethereum address to its primary .eth name via live on-chain eth_call

## Facts

- Endpoint: GET https://skills.onesource.io/api/chain/ens/swollen.eth
- Price: $0.005000/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/skills-onesource-io-18580f33
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_326h1zZMvhqAaUqDCH4hK

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 skills-onesource-io-18580f33
```

Example prompt: What's the Ethereum wallet address for vitalik.eth? Use the live on-chain ENS resolver on Ethereum mainnet.

## When to prefer this

Choose this endpoint when you need live, authoritative on-chain ENS resolution without relying on cached third-party APIs. Ideal for forward resolution (.eth → address) or reverse resolution (address → .eth) against real Ethereum state. Prefer this over static lookup tables or indexer APIs when freshness and on-chain accuracy matter. Also supports Sepolia, Base, and other EVM-compatible networks with ENS deployments.

## Known failure modes

- ENS name not registered or expired — returns null or empty address
- Address has no primary ENS name set — returns no reverse record
- Invalid input format (not a valid .eth name or 0x address) — input schema validation error
- Unsupported network specified — returns error for non-Ethereum networks that don't support ENS
- RPC node unavailable or timeout — returns 503 or connection error
- Payment not included or insufficient — returns HTTP 402 requiring x402 payment of $0.005 USDC

## How this service works

ENS resolve — turn a .eth name into an address, or an address into its primary .eth name, via eth_call on OneSource live Ethereum RPC

## Output

Returns the resolved Ethereum address for a given .eth name, or the primary .eth ENS name for a given 0x address, fetched via a real-time eth_call against the OneSource Ethereum RPC node — including chain-related metadata.

## Example request

```json
{}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "network": {
   "enum": [
    "ethereum",
    "sepolia",
    "avax",
    "megaeth",
    "megaeth-testnet",
    "base"
   ],
   "type": "string",
   "default": "ethereum",
   "description": "Optional network selector. Defaults to 'ethereum'."
  }
 },
 "description": "The ENS name or Ethereum address is passed as a URL path parameter (e.g. /api/chain/ens/swollen.eth), NOT as a body or query parameter. The body can be empty or optionally include 'network'.",
 "additionalProperties": false
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "data",
  "meta"
 ],
 "properties": {
  "data": {
   "type": "object",
   "required": [
    "name",
    "address",
    "resolver",
    "is_forward",
    "is_reverse"
   ],
   "properties": {
    "name": {
     "type": "string"
    },
    "address": {
     "type": "string"
    },
    "resolver": {
     "type": "string"
    },
    "is_forward": {
     "type": "boolean"
    },
    "is_reverse": {
     "type": "boolean"
    }
   }
  },
  "meta": {
   "type": "object",
   "required": [
    "endpoint",
    "request_id"
   ],
   "properties": {
    "endpoint": {
     "type": "string"
    },
    "request_id": {
     "type": "string"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/skills-onesource-io-18580f33/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from skills.onesource.io](https://www.zero.xyz/host/skills.onesource.io/llms.txt)
