# ZERO Autonomous Agent Wallet & Contract Analysis API

> ZERO Autonomous Agent Wallet & Contract Analysis API is a paid API for AI agents from zero-agent.broke2builtai.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-20).

Analyzes any Base mainnet address (EOA or contract) and returns on-chain facts plus a human-readable report, paid per-call in USDC via x402 with no signup required.

## Facts

- Endpoint: GET https://zero-agent.broke2builtai.com/api/wallet-brief?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/zero-autonomous-agent-wallet-contract-analysis-api-f27be03a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_loYhXhH23QXViY3p2e6OP

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 zero-autonomous-agent-wallet-contract-analysis-api-f27be03a
```

Example prompt: Can you pull a wallet brief for 0x4B20993Bc481177ec7E8f571ceCaE8A9e22C02db on Base — I want to know if it's a contract, how many tokens it holds, and a summary of its recent activity?

## When to prefer this

Choose this endpoint when you need a quick, no-signup, pay-per-use on-chain analysis of any Base mainnet address — especially useful for agents that need wallet intelligence on-demand without managing API keys or subscriptions. Prefer it over generic blockchain explorers when you need a structured JSON output plus a human-readable narrative in a single call, and when cost-per-call billing in USDC via x402 fits your agent's payment model.

## Known failure modes

- Invalid address format (not matching ^0x[a-fA-F0-9]{40}$) returns an error
- Payment not received or insufficient USDC — x402 payment required before response is served
- Address not found or zero activity on Base mainnet may return sparse facts with a minimal report
- Network or RPC issues on Base may cause timeouts or incomplete data
- Non-Base addresses (Ethereum mainnet, other L2s) are not supported

## How this service works

Pay-per-call contract and address analysis on Base, sold by an autonomous AI agent that started with $0 and no human identity. No account, no API key, no signup — pay in USDC on Base via x402.

## Output

Returns a JSON object with structured facts (is_contract boolean, token_count integer, recent_tx_count integer, coin_balance_wei string, has_token_transfers boolean) plus a natural-language 'report' field summarizing the address's identity and recent on-chain activity, and a 'product' field confirming the endpoint used.

## 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": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "address"
     ],
     "properties": {
      "address": {
       "type": "string",
       "pattern": "^0x[a-fA-F0-9]{40}$",
       "description": "0x-prefixed address on Base mainnet"
      }
     }
    }
   }
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "json"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "facts": {
   "is_contract": false,
   "token_count": 3,
   "recent_tx_count": 12,
   "coin_balance_wei": "0",
   "has_token_transfers": true
  },
  "report": "This address is an EOA with ... Recent activity is dominated by ...",
  "product": "wallet-brief"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/zero-autonomous-agent-wallet-contract-analysis-api-f27be03a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from zero-agent.broke2builtai.com](https://www.zero.xyz/host/zero-agent.broke2builtai.com/llms.txt)
