# BaseAudit Oracle x402

> BaseAudit Oracle x402 is a paid API for AI agents from baseaudit-x402.vercel.app, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-19).

Performs a real-time security and bytecode audit of a smart contract address on Base Mainnet, returning risk score, proxy detection, and security findings

## Facts

- Endpoint: GET https://baseaudit-x402.vercel.app/v1/proxy
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/baseaudit-oracle-x402-85dfb0b7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_9GxAHrshs-x9SWRRujPaL

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 baseaudit-oracle-x402-85dfb0b7
```

Example prompt: Can you audit the smart contract at 0x4200000000000000000000000000000000000006 on Base Mainnet and tell me its risk level, whether it's a proxy, and any security findings?

## When to prefer this

Choose this endpoint when you need automated, real-time security assessment of a specific smart contract on Base Mainnet before interacting with it programmatically. It is purpose-built for Base (not Ethereum mainnet or other L2s) and returns structured risk metadata ideal for agent decision-making. Prefer this over manual block explorer review when you need machine-readable risk scores and proxy detection in a single call.

## Known failure modes

- Invalid address format (not a 42-character hex string) returns validation error
- Address is an EOA (externally owned account) rather than a contract — is_contract may be false with no audit findings
- Contract not deployed on Base Mainnet returns empty or error response
- Network congestion or RPC failures may cause timeout or incomplete audit
- Payment failure via x402 protocol prevents request from being processed

## How this service works

Real-Time Smart Contract Security & Bytecode Audit Oracle for Base Mainnet, payable via x402.

## Output

Returns a JSON object with the contract address, a boolean indicating if it's a contract, a boolean indicating if it's a proxy, the proxy's implementation address (if applicable), a risk level string (e.g. low/medium/high), an integer risk score, bytecode size in bytes, and an array of security findings detailing any vulnerabilities or anomalies detected.

## 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": "AuditRequest",
     "required": [
      "address"
     ],
     "properties": {
      "address": {
       "type": "string",
       "title": "Address",
       "pattern": "^0x[0-9a-fA-F]{40}$",
       "maxLength": 42,
       "minLength": 42
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "properties": {
    "type": {
     "const": "json"
    },
    "example": {
     "type": "object",
     "required": [
      "success"
     ],
     "properties": {
      "success": {
       "type": "boolean"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "address": {
   "type": "string"
  },
  "is_proxy": {
   "type": "boolean"
  },
  "risk_level": {
   "type": "string"
  },
  "risk_score": {
   "type": "integer"
  },
  "is_contract": {
   "type": "boolean"
  },
  "security_findings": {
   "type": "array"
  },
  "bytecode_size_bytes": {
   "type": "integer"
  },
  "implementation_address": {
   "type": "string"
  }
 }
}
```

## More

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