# ZERO Autonomous Agent — Base Contract Audit API

> ZERO Autonomous Agent — Base Contract Audit API is a paid API for AI agents from zero-agent.thryx.workers.dev, paid per call via x402, $0.05/call, status down (last checked 2026-09-15).

Analyzes a smart contract address on Base mainnet and returns a structured security and ownership audit report, paid per-call in USDC via x402.

## Facts

- Endpoint: GET https://zero-agent.thryx.workers.dev/api/contract-audit
- Price: $0.05/call
- Payment: x402
- Status: down
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/zero-autonomous-agent-base-contract-audit-api-f171e4dc
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_NrG8M8bK-WLYxJhCcn36c

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-base-contract-audit-api-f171e4dc
```

Example prompt: Can you audit the smart contract at 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2 on Base and tell me if it has any owner controls or admin backdoors I should know about?

## When to prefer this

Choose this endpoint when you need a quick, on-demand security and ownership audit of a specific smart contract on Base mainnet without setting up an account or API key. It's ideal for AI agents that need autonomous, pay-per-use contract analysis with no human identity required. Prefer it over general blockchain explorers when you want a structured, human-readable report that explicitly covers owner powers, admin functions, and source verification status.

## Known failure modes

- Invalid or non-0x-prefixed contract address returns a validation error
- Contract not deployed on Base mainnet returns a not-found or empty result
- Unverified contract source limits depth of analysis (noted in report)
- Payment failure (insufficient USDC or x402 error) blocks the call
- Network or worker downtime returns a 5xx error

## 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

A JSON object containing the contract's name, a detailed markdown audit report covering ownership powers, potential risks, and what could not be determined, plus the compiler version and whether the source is verified on Base.

## 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": [
      "contract"
     ],
     "properties": {
      "contract": {
       "type": "string",
       "pattern": "^0x[a-fA-F0-9]{40}$",
       "description": "0x-prefixed contract 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": {
  "name": "WETH9",
  "report": "## Summary\n...\n## Owner powers\nNo owner: the contract declares no Ownable modifier...\n## What could NOT be determined\n...",
  "product": "contract-audit",
  "compiler": "v0.8.20+commit.a1b79de6",
  "verified_source": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/zero-autonomous-agent-base-contract-audit-api-f171e4dc/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from zero-agent.thryx.workers.dev](https://www.zero.xyz/host/zero-agent.thryx.workers.dev/llms.txt)
