# Basename/ENS Name Resolution (Base)

> Basename/ENS Name Resolution (Base) is a paid API for AI agents from payai.agentstools.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-13).

Resolves Basename/ENS names to Ethereum addresses (forward) or resolves addresses back to names (reverse, with spoofing protection) on the Base network.

## Facts

- Endpoint: GET https://payai.agentstools.dev/resolve
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/basename-ens-name-resolution-base-1f443ccc
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_q4DDeFWyGxUkcC9uESp2W

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 basename-ens-name-resolution-base-1f443ccc
```

Example prompt: What Ethereum address does 'jesse.base.eth' resolve to on Base? Also, can you do a reverse lookup for 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 to find its Basename and verify it's not spoofed?

## When to prefer this

Use this endpoint when you need to resolve human-readable Basename/ENS names to Ethereum addresses (or vice versa) specifically on the Base network. Prefer this over generic ENS resolvers when working with Base-native identities (*.base.eth) or when you need spoofing-protected reverse resolution. Ideal for payment flows where you want to confirm a wallet address matches a known Base username.

## Known failure modes

- Name not found: the Basename/ENS name has no registered address
- Address has no reverse record: the address has not set a Basename/ENS reverse record
- Forward verification failure: reverse record name does not resolve back to the given address (spoofing detected)
- Invalid input: neither 'name' nor 'address' query parameter provided
- Malformed address: address parameter is not a valid Ethereum address
- Network/RPC error resolving ENS on Base

## How this service works

Basename/ENS resolution on Base: forward name->address (give 'name') or reverse address->name (give 'address', forward-verified against spoofing).

## Output

Returns the resolved Ethereum address for a given Basename/ENS name (forward lookup), or returns the verified Basename/ENS name for a given Ethereum address (reverse lookup, forward-verified to prevent spoofing). Provides human-readable name-to-address or address-to-name mapping on Base.

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [],
     "properties": {
      "name": {
       "type": "string",
       "description": "Basename/ENS name to resolve (forward)"
      },
      "address": {
       "type": "string",
       "description": "Address for reverse lookup (->name)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/basename-ens-name-resolution-base-1f443ccc/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from payai.agentstools.dev](https://www.zero.xyz/host/payai.agentstools.dev/llms.txt)
