{"uid":"cap_PkEuXjxknxk4QLZxwgPo6","slug":"agentdiet-flash-loan-vulnerability-checker-dc1595a9","name":"AgentDiet Flash Loan Vulnerability Checker","description":"Deterministic B2A/A2A/MCP/x402/MPP/L402 execution and intelligence node at https://rag-diet.agentdiet.dev settling in USDC on Base.","url":"https://rag-diet.agentdiet.dev/v1/flashloan-vuln-check?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","POST"],"type":"string"},"queryParams":{"type":"object","properties":{"address":{"type":"string"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"data":{},"status":"ok","roi_proof":{"compression_ratio_pct":91.4}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_gchM4wshiRy5w8r5BGh8H","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Checks a smart contract address for flash loan vulnerability risks on-chain","exampleAgentPrompt":"Can you check if the contract at 0xABC123... is vulnerable to flash loan attacks?","exampleUseCases":[{"title":"DeFi protocol security audit","prompt":"Before I provide liquidity to this DeFi protocol, can you scan contract address 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D for any flash loan vulnerabilities?"},{"title":"Post-incident contract investigation","prompt":"There was a flash loan exploit reported on this contract — can you check 0xd9e1cE17f2641f24aE83637ab66a2cca9C378B9F to see if it's still at risk?"},{"title":"Pre-investment smart contract vetting","prompt":"I'm thinking of investing in a new yield farming protocol — can you run a flash loan vulnerability check on their contract at 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2 before I commit any funds?"}],"resultDescription":"Returns a JSON object with status, vulnerability data, and a compression/ROI proof showing the analysis compression ratio (e.g. 91.4%). The data field contains flash loan risk findings for the queried contract address.","failureModes":["Invalid or malformed contract address returns an error","Non-existent contract address may return empty or null data","Missing required 'input' field results in validation error","Network or payment failure (x402) prevents execution","Rate limiting or insufficient USDC balance blocks the call"],"whenToPreferThis":"Use this endpoint when you need a quick, low-cost ($0.01 USDC) automated flash loan vulnerability check on a specific smart contract address, especially in agentic DeFi workflows where on-chain security screening is needed before interacting with a protocol.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:44:29.394Z","isFirstParty":false,"canonicalSlug":"agentdiet-flash-loan-vulnerability-checker-dc1595a9"}