# 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 on Base Mainnet, returning risk scores, proxy detection, and security findings.

## Facts

- Endpoint: GET https://baseaudit-x402.vercel.app/v1/audit
- 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-b0d450de
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_3bEO6c7GmxbXFCH6gqnmq

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-b0d450de
```

Example prompt: Can you run a security audit on the Base Mainnet contract at 0x4200000000000000000000000000000000000006 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 a fast, automated security assessment of a specific smart contract deployed on Base Mainnet without commissioning a full manual audit. It is ideal for pre-interaction risk checks, DeFi safety screening, proxy detection, and automated trading pipelines. Prefer this over manual audits for real-time, per-address lookups. Not suitable for Ethereum mainnet or other EVM chains — use only for Base Mainnet addresses.

## Known failure modes

- Invalid address format (not a valid 0x-prefixed 40-hex-char address) — returns validation error
- Address is an EOA (externally owned account), not a contract — is_contract returns false with limited audit data
- Contract not found or not deployed on Base Mainnet — may return error or empty findings
- x402 payment failure (insufficient USDC or wallet not configured) — payment-level error before audit executes
- Network timeout or RPC unavailability for Base Mainnet — upstream connectivity error

## 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 proxy, a risk level string (e.g. 'low', 'medium', 'high'), an integer risk score, a boolean confirming if the address is a contract, an array of security findings, the bytecode size in bytes, and the implementation address if it's a proxy contract.

## 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-b0d450de/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)
