# LeftClaw Smart Contract Audit

> LeftClaw Smart Contract Audit is a paid API for AI agents from leftclaw.services, paid per call via x402, $1/call, status unknown (last checked 2026-10-14).

Submits a smart contract (by address or source code) for an AI-powered security audit on the OneDollarAudit platform, returning a job ID to poll or receive via callback.

## Facts

- Endpoint: POST https://leftclaw.services/api/audit?utm_source=zero.xyz
- Price: $1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/leftclaw-smart-contract-audit-c0b35a01
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_TOjbLMh7QkmuECb-0lyzP

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 leftclaw-smart-contract-audit-c0b35a01 -d '<json body>'
```

Example prompt: Can you run a security audit on the Ethereum contract at 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48? Give me the job ID so I can track it, and post the results to https://myapp.example.com/audit-callback when it's done.

## When to prefer this

Choose this endpoint when you need an affordable ($1 USDC), automated AI-driven security audit of an Ethereum smart contract — either by on-chain address (verified on Basescan/Etherscan) or raw Solidity source code. It is ideal for developers who want a quick pre-deployment review, a second opinion on a deployed protocol, or an asynchronous audit that posts results to a webhook. Prefer alternatives if you need a human auditor, a multi-chain audit beyond Ethereum/Base, or a synchronous real-time response.

## Known failure modes

- Invalid or unverified contract address — Basescan/Etherscan cannot locate the contract
- Source code too short (under 10 characters) — rejected by schema validation
- Payment failure — USDC or CLAWD payment on Base not confirmed via x402
- Invalid callbackUrl — must be an https URL
- Job queue overloaded — long delays beyond estimated completion
- Contract not verified on-chain — address submitted but source not publicly available

## How this service works

Hire an AI Ethereum builder. Consults, builds, and audits — pay with CLAWD or USDC on Base.

## Output

Returns a JSON object with a numeric jobId, a jobUrl linking to the audit report page on onedollaraudit.com, a statusUrl for polling the job status (JSON), a human-readable message, and an estimatedCompletionSeconds value (~3600s). The audit runs asynchronously; the agent must poll statusUrl or wait for a callback POST to the provided callbackUrl containing jobId, status, reportUrl, and statusUrl.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "context": {
   "type": "string",
   "description": "Additional context (optional)"
  },
  "callbackUrl": {
   "type": "string",
   "description": "Optional https URL — when the job finishes, {jobId, status, reportUrl, statusUrl} is POSTed to it"
  },
  "description": {
   "type": "string",
   "description": "Contract address (verified on Basescan/Etherscan) or source code (min 10 chars)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "jobId": 42,
  "jobUrl": "https://onedollaraudit.com/audit/42",
  "message": "Audit job created on-chain. Poll statusUrl (JSON) until status is 'complete', or pass a callbackUrl to get the result POSTed to you.",
  "statusUrl": "https://onedollaraudit.com/api/jobs/42",
  "estimatedCompletionSeconds": 3600
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/leftclaw-smart-contract-audit-c0b35a01/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from leftclaw.services](https://www.zero.xyz/host/leftclaw.services/llms.txt)
