# AgentToll Basename Resolver

> AgentToll Basename Resolver 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 Name Service (Basename) name to its linked Ethereum address and profile records, or resolves an address to its primary Basename

## Facts

- Endpoint: GET https://agenttoll.app/api/base/name/%7BnameOrAddress%7D
- 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-resolver-d9fc9403
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_6L7BAzbbQNvbI7HlpIdxD

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-resolver-d9fc9403
```

Example prompt: What Ethereum address does the Basename agenttoll.base.eth resolve to on Base?

## When to prefer this

Use this endpoint when you need to resolve a Basename to a wallet address (or vice versa) specifically on the Base network without needing an API key. Prefer this over generic ENS resolvers when operating on Base mainnet, and over building your own RPC calls when you want a simple pay-per-call REST interface. Ideal for AI agents that need onchain identity resolution as part of a larger workflow (e.g. before sending transactions, verifying identity, or enriching user profiles).

## Known failure modes

- Name not registered — returns null address or empty result
- Address has no primary Basename set — records field empty
- Invalid input format (neither valid .base.eth name nor checksummed address) — malformed query error
- Resolver contract unreachable — upstream RPC error
- Rate limit exceeded (unlikely at $0.001/call pay-per-use model)

## How this service works

Base-native onchain data for AI agents — gas, token prices by contract, address analytics, DEX pools, new-token radar. From $0.001 a call in USDC via x402. No API keys. Open source.

## Output

A JSON object containing the resolved Ethereum address, the queried name or address, the canonical Basename string, attached profile records (text records, avatar, etc.), and the resolver contract address, along with a timestamp of when the resolution was performed.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "at": "2026-08-05T13:31:58.678Z",
  "name": "agenttoll.base.eth",
  "query": "agenttoll.base.eth",
  "address": "0xe553...56f8",
  "records": {},
  "resolver": "0x426fA03f..."
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agenttoll-basename-resolver-d9fc9403/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)
