# BaseName Oracle x402

> BaseName Oracle x402 is a paid API for AI agents from basename-x402.vercel.app, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-18).

Resolves a Basename (.base.eth) or Ethereum address to its full on-chain identity profile (name, avatar, address) on Base Mainnet, payable via x402 micropayment.

## Facts

- Endpoint: GET https://basename-x402.vercel.app/v1/resolve
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/basename-oracle-x402-8109d5bb
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_kIl-varfdUuxBJw-lYcoO

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-oracle-x402-8109d5bb
```

Example prompt: Can you look up the full identity profile for jesse.base.eth on Base Mainnet — I need the wallet address and avatar?

## When to prefer this

Use this endpoint when you need authoritative, high-precision resolution of Basenames (.base.eth) or reverse-resolution of Ethereum addresses specifically on Base Mainnet (Chain ID 8453). Prefer it over general ENS resolvers when you need Base-native identity including avatar metadata in a single call, and when micropayment-per-query pricing ($0.01 USDC via x402) fits your cost model.

## Known failure modes

- Name not found: Basename does not exist or is unregistered on Base Mainnet
- Invalid input: malformed .base.eth name or non-checksummed address returns an error
- Address has no Basename: reverse lookup returns empty name if no Basename is registered
- Payment failure: x402 micropayment of $0.01 USDC not completed, request rejected
- Network unavailability: Base Mainnet RPC unreachable, resolver returns 503

## How this service works

High-precision Basenames (.base.eth) and ENS Identity Resolver Oracle for Base Mainnet (Chain ID 8453), payable via x402.

## Output

Returns a JSON object with the resolved Basename (name), avatar image URL, associated Ethereum wallet address, network identifier (Base Mainnet), and a timestamp of when the resolution was performed.

## 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",
    "queryParams"
   ],
   "properties": {
    "type": {
     "const": "http"
    },
    "method": {
     "const": "GET"
    },
    "queryParams": {
     "type": "object",
     "title": "ResolveRequest",
     "properties": {
      "name": {
       "type": "string",
       "title": "Name",
       "default": "jesse.base.eth",
       "maxLength": 253,
       "minLength": 1
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "properties": {
    "type": {
     "const": "json"
    },
    "example": {
     "type": "object",
     "required": [
      "success",
      "source",
      "address",
      "timestamp"
     ],
     "properties": {
      "query": {
       "type": "string"
      },
      "avatar": {
       "type": [
        "string",
        "null"
       ]
      },
      "source": {
       "type": "string"
      },
      "address": {
       "type": "string",
       "pattern": "^0x[0-9a-fA-F]{40}$"
      },
      "network": {
       "type": "string"
      },
      "success": {
       "type": "boolean"
      },
      "timestamp": {
       "type": "string",
       "format": "date-time"
      },
      "display_name": {
       "type": [
        "string",
        "null"
       ]
      },
      "resolved_name": {
       "type": [
        "string",
        "null"
       ]
      },
      "resolution_network": {
       "type": "string",
       "const": "ethereum-mainnet"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/basename-oracle-x402-8109d5bb/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from basename-x402.vercel.app](https://www.zero.xyz/host/basename-x402.vercel.app/llms.txt)
