# DevX Smart-Contract Pre-Audit (Quick Check)

> DevX Smart-Contract Pre-Audit (Quick Check) is a paid API for AI agents from scaudit.madebydevx.com, paid per call via x402, $0.09/call, status unknown (last checked 2026-12-03).

Runs an automated Solidity security pre-audit returning a grade, score, severity counts, top 5 findings with fixes, and owner privilege detection — for $0.90 USDC per call.

## Facts

- Endpoint: POST https://scaudit.madebydevx.com/v1/quick?utm_source=zero.xyz
- Price: $0.09/call
- Payment: x402
- Status: unknown
- Last checked: 2026-12-03
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/devx-smart-contract-pre-audit-quick-check-4564ce36
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_wWyAHc5Ch8HX814VXR9qP

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 devx-smart-contract-pre-audit-quick-check-4564ce36 -d '<json body>'
```

Example prompt: Can you do a quick security pre-audit on this Solidity contract source — I need the grade, score, top findings with fixes, and whether it has any dangerous owner powers like minting or pausing? Run it on Base.

## When to prefer this

Choose this endpoint when you need a fast, low-cost ($0.90 USDC) automated triage of a Solidity contract — either from source code or a verified on-chain address — and want a structured verdict with a grade, severity counts, top findings, and owner privilege detection without waiting for a human audit. Prefer the sibling full-audit endpoint (/v1/audit at $99) when you need exhaustive findings beyond the top 5. Use this for pre-deployment checks, third-party contract due diligence, or investment screening on any major EVM chain.

## Known failure modes

- Invalid or non-checksummed contract address returns a validation error
- Contract address not verified on Sourcify returns an error (source unavailable)
- Solidity source exceeds 256,000 character limit returns a size error
- Multi-file project exceeds 60 files or 250 KB total returns a size error
- Unsupported chain identifier returns an error
- Failed runs are not charged — a payment error or engine failure results in no USDC deduction
- Duplicate requestKey with different input within 7 days may return a conflict error

## How this service works

Quick Solidity pre-audit check, $0.90 USDC on Base: send source or a verified contract address + chain; the same automated engine returns the verdict (grade, score, security and owner-trust risk), severity counts, the top 5 findings with location and fix, and owner powers found (mint, pause, blacklist, fees, upgrade). Triage, not a human audit; failed runs not charged. Every finding with code and detail: POST /v1/audit ($99). By DevX.

## Output

A JSON response with a verdict object containing a letter grade (A–F), numeric score, security_risk and owner_trust_risk levels, production_ready flag, severity counts (critical/high/medium/low/info), up to 5 top findings each with file, line number, title, category, severity, and a recommended fix, plus a list of owner powers detected (mint, pause, blacklist, fees, upgrade), payment confirmation details, and an operation ID. If a full report is available, a URL and price for the full audit is included.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "chain": {
   "type": "string",
   "description": "Chain for address mode (default base): ethereum, mainnet, eth, base, optimism, op, arbitrum, arb, polygon, matic, bsc, bnb, gnosis, avalanche, avax, linea, scroll, sepolia, base-sepolia, or the numeric chain id"
  },
  "source": {
   "type": "string",
   "maxLength": 256000,
   "description": "Solidity source of one file (or a flattened file). Use this OR sources OR address."
  },
  "address": {
   "type": "string",
   "pattern": "^0x[0-9a-fA-F]{40}$",
   "description": "Deployed contract address whose source is verified on Sourcify (proxies: implementation is analysed too)"
  },
  "sources": {
   "type": "object",
   "description": "Multi-file project: {\"contracts/Vault.sol\": \"...\", ...} (max 60 files, 250 KB total). Standard library paths (@openzeppelin/ etc.) are skipped.",
   "additionalProperties": {
    "type": "string"
   }
  },
  "requestKey": {
   "type": "string",
   "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{7,127}$",
   "maxLength": 128,
   "minLength": 8,
   "description": "Optional idempotency key: same payer + requestKey + input within 7 days returns the stored report without a second charge."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "tier": "quick",
  "result": {
   "tier": "quick",
   "verdict": {
    "grade": "F",
    "label": "NOT production-ready: critical issues",
    "score": 30,
    "counts": {
     "low": 0,
     "high": 0,
     "info": 0,
     "medium": 0,
     "critical": 1
    },
    "security_risk": "critical",
    "owner_trust_risk": "none",
    "production_ready": false
   },
   "full_report": {
    "url": "/v1/audit",
    "price_usd": "99.00"
   },
   "owner_powers": [],
   "top_findings": [
    {
     "ref": "F-01",
     "file": "input.sol",
     "line": 3,
     "title": "Reentrancy: state written after external call in withdraw()",
     "category": "reentrancy",
     "severity": "critical",
     "recommendation": "Update state before the external call (checks-effects-interactions) or add a reentrancy guard."
    }
   ],
   "more_findings_in_full_report": 0
  },
  "status": "paid",
  "payment": {
   "status": "paid",
   "network": "eip155:8453",
   "tx_hash": "0x0000000000000000000000000000000000000000000000000000000000000000",
   "amount_raw": "90000"
  },
  "operation_id": "5d0c7a3e-1f2b-4c6d-8e9f-0a1b2c3d4e5f"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/devx-smart-contract-pre-audit-quick-check-4564ce36/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from scaudit.madebydevx.com](https://www.zero.xyz/host/scaudit.madebydevx.com/llms.txt)
