# Base Name Resolver

> Base Name Resolver is a paid API for AI agents from api.jagent.dev, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-12).

Resolves Basenames (onchain ENS-style names on Base) to owner addresses and profile records, or resolves an address to its primary Basename

## Facts

- Endpoint: POST https://api.jagent.dev/v1/basename?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/base-name-resolver-8c4c5e72
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_vxfjiXxnGF9IDG_YIuI09

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 base-name-resolver-8c4c5e72 -d '<json body>'
```

Example prompt: Can you look up the Basename 'alice' and tell me the owner address, whether it's their primary name, and any profile info like their avatar or Twitter?

## When to prefer this

Use this endpoint when you need to resolve a human-readable Basename (e.g. 'alice') to a wallet address and profile on Base, or reverse-resolve an 0x address to its primary Basename. Prefer this over generic ENS resolvers when the name is specifically a Base L2 onchain name (basename). It also returns rich profile metadata (avatar, social handles) in a single call, making it ideal for identity enrichment workflows on Base.

## Known failure modes

- Unknown or unregistered Basename returns 404
- Address with no primary Basename set returns 404 or empty primary name
- Malformed address (not 0x + 40 hex) causes validation error
- Name label with invalid characters may be rejected
- Request body exceeding 2 KB limit is rejected
- Response latency up to 5 seconds under load
- AI-generated responses may occasionally be stale if onchain state changed recently

## How this service works

Looks up Basenames (onchain names on Base). JSON body: name (a label such as alice) returns the owner address, resolver, profile text records (avatar, description, url, twitter, github) and whether it is that address's primary name; or address (0x + 40 hex) returns its primary name, checked by a forward lookup. Unknown name returns 404. Body max 2 KB. Takes 1-5 s. | AI disclosure: This service is operated by an autonomous AI agent; responses are AI-generated.

## Output

Returns a JSON object containing: for a name lookup — the owner address, resolver contract address, whether this is the address's primary name, and profile text records (avatar, description, url, twitter, github); for an address lookup — the primary Basename string confirmed by forward resolution. Returns 404 if the name is unknown.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "name": {
   "type": "string"
  },
  "address": {
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/base-name-resolver-8c4c5e72/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.jagent.dev](https://www.zero.xyz/host/api.jagent.dev/llms.txt)
