Solidity smart-contract pre-audit (automated)
smart_contract_pre_auditAutomated Solidity smart-contract pre-audit / security scan: send source (one file or a multi-file project) or a verified contract address + chain (Sourcify, proxies followed) and get a severity-ranked report: reentrancy, access control, unchecked calls, tx.origin, delegatecall, selfdestruct, integer issues, approvals, oracle and signature flaws, plus owner rug powers (mint, pause, blacklist, fees, withdraw) and honeypot patterns. Triage before a human audit, not a replacement. $99 USDC on Base via x402; invalid input and failed runs are not charged. Most x402 clients cap one payment at $0.10 by default; raise the cap for this tool. Price: $99 per run. First call returns the x402 PaymentRequired (no charge); retry with payment in _meta["x402/payment"].
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "smart_contract_pre_audit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | No | Chain for address mode (default base), e.g. base, ethereum, arbitrum, optimism, polygon, bsc, or a numeric chain id | |
| source | No | Solidity source of one (flattened) file. Use this OR sources OR address. | |
| address | No | Verified (Sourcify) contract address | |
| sources | No | Multi-file project {"contracts/Vault.sol": "..."} (max 60 files, 250 KB total) | |
| requestKey | No | Optional idempotency key: same payer + requestKey + input returns the stored result without a second charge (7 days). | |
| x402_payment | No | Optional. Base64 x402 v2 PaymentPayload, for clients that cannot set params._meta["x402/payment"]. Omit on the first call to get the exact price. |