# 2s.io ENS Resolver

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

Resolves ENS names to Ethereum addresses and reverse-resolves addresses to ENS names, returning profile text records including avatar, email, Twitter, and GitHub.

## Facts

- Endpoint: GET https://2s.io/api/crypto/ens-resolve
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/2s-io-ens-resolver-10ce490e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_WRi9DXX1kYxf0p5Mmzov3

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 2s-io-ens-resolver-10ce490e
```

Example prompt: What Ethereum address does vitalik.eth resolve to, and does it have any profile info like a Twitter handle or avatar linked to it?

## When to prefer this

Use this endpoint when an AI agent needs to resolve ENS names or reverse-lookup wallet addresses in real time on Ethereum mainnet, especially when profile text records (avatar, social handles) are needed — since these records change after any LLM training cutoff and cannot be resolved from a sandbox environment.

## Known failure modes

- Unregistered ENS name returns address:null
- ENS name with no reverse record returns name:null
- Invalid query format (not a valid ENS name or 0x address) may return an error
- On-chain RPC timeouts during heavy Ethereum network load
- ENS records recently updated may have brief propagation delay

## How this service works

Resolve ENS (Ethereum Name Service) names and addresses live on Ethereum mainnet. Pass query as either an ENS name (e.g. "vitalik.eth") → returns the Ethereum address it points to, or a 0x address → returns its primary ENS name (reverse record). Either way it also returns the profile text records: avatar, email, url, twitter (com.twitter), github (com.github), and description. A live on-chain lookup agents can't do from their sandbox, and ENS records change after training cutoffs. Wallet UX, address-book resolution, on-chain identity. Returns address:null for an unregistered or unset name.

## Output

Returns a JSON object containing the resolved Ethereum address (or null if unregistered), the primary ENS name (for reverse lookups), and profile text records including avatar, email, url, twitter (com.twitter), github (com.github), and description fields.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "query": "vitalik.eth"
  }
 }
}
```

## 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",
    "queryParams"
   ],
   "properties": {
    "type": {
     "const": "http"
    },
    "method": {
     "const": "GET"
    },
    "queryParams": {
     "required": [
      "query"
     ],
     "properties": {
      "query": {
       "type": "string",
       "description": "ENS name (e.g. \"vitalik.eth\") or 0x address."
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/2s-io-ens-resolver-10ce490e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from 2s.io](https://www.zero.xyz/host/2s.io/llms.txt)
