{"uid":"cap_vE3XPUe24fdEwb-9NX-Zo","slug":"smart-contract-analyzer-ai-audit-via-x402-48c3af78","name":"Smart Contract Analyzer — AI Audit via x402","description":"Pay-per-request AI developer tools in USDC on Base. Generate code, audit smart contracts, review diffs, summarize text, and convert data formats via the x402 payment standard. Powered by glm-5.2.","url":"https://code.mamenesia.com/service/analyze-contract","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"address":{"type":"string","description":"On-chain contract address"},"sourceCode":{"type":"string","description":"Solidity source if not verified"}}},"responseSchema":{"type":"json","example":{"paid":"0.5 USDC","result":{"code":"// generated output","model":"glm-5.1","tokens":100},"txHash":"0x...","service":"analyze-contract"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.5","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.5/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.5","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.5","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_wC0jyh9ioksgVVs2dpXBF","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.5","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Analyzes a Solidity smart contract (by on-chain address or raw source) for vulnerabilities, issues, and best-practice violations using GLM AI","exampleAgentPrompt":"Can you audit this Solidity smart contract for me? The contract is deployed at 0xAbC123... on Base — run a full security analysis and flag any vulnerabilities or issues you find.","exampleUseCases":[{"title":"DeFi protocol pre-launch security check","prompt":"I'm about to launch my DeFi lending protocol on Base — can you audit the smart contract at 0x4f9a1b2c3d... and tell me if there are any reentrancy issues, access control problems, or other vulnerabilities before I go live?"},{"title":"Unverified contract source audit","prompt":"I have the Solidity source for a contract that isn't verified on-chain yet — can you analyze this code for me and flag any security issues or bad practices? Here's the source: pragma solidity ^0.8.0; contract MyToken { ... }"},{"title":"Third-party contract due diligence","prompt":"Before I invest in this protocol, can you security-audit the smart contract at address 0xDEADbeef99... on Base and give me a breakdown of any risks or red flags in the code?"}],"resultDescription":"A JSON response containing the AI-generated audit analysis (code field with findings), the GLM model used, token count consumed, the USDC amount paid, and the transaction hash for the x402 payment.","failureModes":["Invalid or non-existent contract address returns an error with no analysis","Unverified on-chain contract with no sourceCode provided may result in limited or empty analysis","Malformed Solidity source code may cause parsing failures","Payment failure via x402 returns 402 status and no result","Rate limiting or model overload may cause timeouts","Contract too large may exceed token limits"],"whenToPreferThis":"Choose this endpoint when you need AI-powered security auditing of a Solidity smart contract deployed on Base or provided as raw source, and want to pay per-request in USDC without a subscription. Ideal for agents performing due diligence on contracts, pre-launch audits, or spot-checking third-party code for vulnerabilities.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:39:43.402Z","isFirstParty":false}