# AmanChain ENS Resolver

> AmanChain ENS Resolver is a paid API for AI agents from amanchain-relay.gitajhd.workers.dev, paid per call via x402, $0.002488/call, status unknown (last checked 2026-09-14).

Resolves ENS names to Ethereum addresses (and reverse) using live on-chain consensus state, paid per call via x402 in USDC on Base

## Facts

- Endpoint: POST https://amanchain-relay.gitajhd.workers.dev/api/x402/aman-ens-resolve
- Price: $0.002488/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/amanchain-ens-resolver-7d343e6b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_5rEunZsT2n7dxvZyN6YxP

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 amanchain-ens-resolver-7d343e6b -d '<json body>'
```

Example prompt: What Ethereum address does vitalik.eth resolve to? Use the AmanChain ENS resolver to look it up against live on-chain state.

## When to prefer this

Use this endpoint when you need to resolve ENS names to addresses (or reverse) against live on-chain state without requiring an API key or account setup. Prefer it in agent workflows where pay-per-call via x402 in USDC on Base is acceptable and you need deterministic, real-time on-chain resolution rather than a cached or off-chain answer.

## Known failure modes

- ENS name does not exist or has no resolver set — returns null or error
- ENS name exists but has no address record — empty resolution
- Reverse record not set for address — no ENS name returned
- Invalid ENS name format — malformed input error
- x402 payment failure — call not executed if USDC payment on Base fails
- Network or node unavailability — service temporarily unreachable

## How this service works

Resolve any ENS name to its address (and reverse); Ethereum Name Service lookup API. Deterministic on-chain execution by the AmanChain node — live consensus state, real blocks, pools and balances. Pay per call via x402 (USDC on Base), no account, no API key. POST JSON {"serviceId":"aman-ens-resolve","request":"<input>"}.

## Output

Returns the resolved Ethereum address for a given ENS name, or the ENS name for a given address (reverse resolution), sourced from live on-chain consensus state at the time of the call.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "body": {
     "type": "object"
    }
   }
  },
  "output": {
   "type": "object",
   "properties": {
    "example": {
     "type": "object",
     "example": {
      "ok": true
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/amanchain-ens-resolver-7d343e6b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from amanchain-relay.gitajhd.workers.dev](https://www.zero.xyz/host/amanchain-relay.gitajhd.workers.dev/llms.txt)
