# ENS / Basename Resolver & Verifier

> ENS / Basename Resolver & Verifier is a paid API for AI agents from kr-x402-mvp.kgy5612.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-31).

Resolves ENS names or Basenames to Ethereum addresses (and reverse), verifies bidirectional match, and returns associated records and safety signals.

## Facts

- Endpoint: GET https://kr-x402-mvp.kgy5612.workers.dev/v1/ens?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/ens-basename-resolver-verifier-a71e74e9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_97AqvECodS1FuFl8iXZL5

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 ens-basename-resolver-verifier-a71e74e9
```

Example prompt: Before I send 0.5 ETH, can you resolve vitalik.eth to its Ethereum address and confirm the forward and reverse records match so it's safe to send?

## When to prefer this

Use this endpoint when an AI agent needs to resolve a human-readable ENS or Basename to an Ethereum address (or vice versa) before executing an onchain payment or interaction, and needs bidirectional verification plus safety signals (is_contract, eip7702, safe_to_send). Prefer over raw RPC calls when you also want pre-packaged next-step hints and a pay-per-call model with no API key setup.

## Known failure modes

- Name not found: ENS name does not resolve to any address
- Reverse mismatch: forward and reverse records do not match, verified=false
- Invalid address format: address fails 0x hex pattern, 400 error
- Payment required: x402 USDC micropayment not completed, 402 response
- Rate or network error: upstream ENS resolver temporarily unavailable
- Address is a contract: contract_check.is_contract=true, agent should treat as non-EOA

## How this service works

Pay-per-call crypto microdata for trading/onchain AI agents via x402 (USDC on Base): Base gas, token risk, balances, multi-venue prices, Hyperliquid book/funding, kimchi premium. No API keys.

## Output

Returns the resolved Ethereum address, reverse name, verification status (bidirectional match confirmed), safe-to-send boolean, ENS text records (avatar, URL), whether the name is a Basename, and a contract check (is_contract, eip7702_delegated) on Base — plus suggested next-call paths for deeper wallet analysis.

## 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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "name": {
       "type": "string",
       "examples": [
        "vitalik.eth",
        "jesse.base.eth"
       ],
       "maxLength": 255,
       "description": "ENS name or Basename, e.g. vitalik.eth, jesse.base.eth"
      },
      "address": {
       "type": "string",
       "pattern": "^0x[0-9a-fA-F]{40}$",
       "examples": [
        "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"
       ],
       "description": "Address for reverse lookup"
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "name": "vitalik.eth",
  "next": [
   "/crypto/contract-info?address=0xd8da6bf26964af9d7eed9e03e53415d37aa96045",
   "/crypto/wallet-snapshot?wallet=0xd8da6bf26964af9d7eed9e03e53415d37aa96045"
  ],
  "input": "vitalik.eth",
  "address": "0xd8da6bf26964af9d7eed9e03e53415d37aa96045",
  "records": {
   "url": "https://vitalik.ca",
   "avatar": "eip155:1/erc1155:0xb32979486938aa9694bfc898f35dbed459f44424/10063"
  },
  "summary": "vitalik.eth -> 0xd8da6bf26964af9d7eed9e03e53415d37aa96045 (reverse matches: verified)",
  "verified": true,
  "direction": "forward",
  "checked_at": "2026-10-30T05:40:00Z",
  "is_basename": false,
  "reverse_name": "vitalik.eth",
  "safe_to_send": true,
  "contract_check": {
   "chain": "base",
   "is_contract": false,
   "eip7702_delegated": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/ens-basename-resolver-verifier-a71e74e9/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from kr-x402-mvp.kgy5612.workers.dev](https://www.zero.xyz/host/kr-x402-mvp.kgy5612.workers.dev/llms.txt)
