pactlint: scan Solidity source
scan_contract_sourceScan Solidity source code for security bugs before deployment, review, or dependency use, returning JSON and Markdown findings with severity, confidence, file:line, and fixes.
Instructions
pactlint: Scan Solidity source code for security bugs before you deploy, review or depend on it. For a deployed verified contract use scan_contract_address. Runs solc, Slither and custom DeFi detectors (unchecked ERC-20 returns, zero slippage limits, oracle misuse, ERC-4626 inflation, signature replay, ...). Returns a JSON report (findings with severity, confidence, file:line and a fix) plus Markdown. Price: USD 0.25 up to 3,000 nSLOC, USD 0.75 up to 15,000; refused inputs are never charged. Free: 3 scans or 30 txpeek checks per IP per UTC day. Typically 1-5 s, up to about 30 s for a large project; at most 60 s; a full queue is a 503 with Retry-After (not charged). Automated and heuristic, not an audit: findings can be false positives and an empty report does not prove the code is free of bugs. Docs: https://tanod.dev/learn/smart-contract-scanner-api.html
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | No | A single Solidity file (no imports; at most 200 KB). Give either source or standard_json. | |
| filename | No | File name for `source` (ends in .sol; default Contract.sol); findings cite it in file:line. | Contract.sol |
| include_noisy | No | Also report detectors dropped by default as noisy (high false-positive rate); default false. | |
| standard_json | No | solc standard-JSON input with inline 'content' for every file (at most 1 MB and 500 files). | |
| compiler_version | No | Exact solc version (default: from pragma). | |
| include_dependencies | No | Also report findings in dependencies, tests and mocks (lib/, node_modules/, OpenZeppelin, ...); default false. | |
| include_informational | No | Also report informational (style and best-practice) findings; default false. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Only on an error result: an object {code, message}, or the reason string of an x402 PaymentRequired object. | |
| stats | No | ||
| status | No | ||
| scan_id | No | ||
| findings | No | ||
| disclaimer | No | ||
| schema_version | No |