# AgentToll Basename Lookup (Bidirectional)

> AgentToll Basename Lookup (Bidirectional) is a paid API for AI agents from agenttoll.app, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Resolves a Base blockchain name (.base.eth) to its address and text records, or resolves a 0x address to its primary basename

## Facts

- Endpoint: GET https://agenttoll.app/api/base/name/:nameOrAddress
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agenttoll-basename-lookup-bidirectional-a5238b3b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_aogn5yyjiySo08cfKji_I

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 agenttoll-basename-lookup-bidirectional-a5238b3b
```

Example prompt: What wallet address does alice.base.eth resolve to, and do they have any text records on their basename?

## When to prefer this

Use this endpoint when you need bidirectional Base blockchain name resolution — either forward (basename → address + text records) or reverse (address → primary basename). Prefer it over generic ENS resolvers when working specifically with Base-native identities, or when you also need text records alongside the address. It is the simplest single-call solution for Base name ↔ address lookups without setting up your own RPC node.

## Known failure modes

- Name not registered or does not exist — empty or null result
- Address has no primary basename set — returns null basename field
- Malformed input (invalid basename format or non-checksummed address) — likely 400 error
- Network or RPC resolution failure — 500 or timeout
- Rate limiting at $0.001/call threshold exceeded — payment or 402 error

## How this service works

Basename lookup both ways: a name returns its address and text records, an address returns its primary basename

## Output

For a name input: returns the resolved 0x wallet address and any associated text records (e.g. avatar, description, social handles). For an address input: returns the primary registered basename associated with that address.

## 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"
    },
    "pathParams": {
     "type": "object",
     "required": [
      "nameOrAddress"
     ],
     "properties": {
      "nameOrAddress": {
       "type": "string",
       "description": "A basename (.base.eth optional) or a 0x address"
      }
     }
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "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/agenttoll-basename-lookup-bidirectional-a5238b3b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agenttoll.app](https://www.zero.xyz/host/agenttoll.app/llms.txt)
