{"uid":"cap_dEqQDFjQ5eG6Dokye_Dig","slug":"agentdiet-bytecode-scanner-6eefa2cc","name":"AgentDiet Bytecode Scanner","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/bytecode-scanner?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_hWts0p0OpCeA_VliyhF98","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":"Scans a blockchain address to analyze its bytecode and returns compressed intelligence data with compression ratio proof","exampleAgentPrompt":"Can you scan the bytecode at this contract address 0xABC123... on Base and give me a compressed analysis of what's deployed there?","exampleUseCases":[{"title":"Smart contract security pre-check","prompt":"Before I interact with this contract at 0xdead...beef on Base, can you scan its bytecode and tell me what's actually deployed there?"},{"title":"DeFi protocol contract audit","prompt":"I need to verify what bytecode is running at 0x1234...5678 — scan it and give me the analysis with your compression proof so I know how much context it saved."},{"title":"Automated on-chain due diligence","prompt":"As part of my token launch review workflow, scan the bytecode at address 0xaaaa...bbbb and return the intelligence summary so I can decide if it's safe to proceed."}],"resultDescription":"Returns a JSON object with a 'status' field ('ok'), a 'data' object containing the bytecode analysis results, and an 'roi_proof' object showing the compression_ratio_pct (e.g. 91.4%) demonstrating how much token bloat was eliminated in the output.","failureModes":["Missing or invalid 'address' query parameter returns error or empty data object","Invalid blockchain address format may return a failed scan status","Network or RPC errors fetching on-chain bytecode may result in timeout or incomplete data","Non-contract addresses (EOA wallets) may return empty bytecode with status ok but no meaningful analysis","Payment failure via x402/USDC may block the request before execution"],"whenToPreferThis":"Choose this endpoint when you need token-efficient, compressed bytecode intelligence for a specific blockchain contract address, especially in agent pipelines where context window size matters. Prefer it over raw RPC calls when you want structured analysis output with a measurable compression ratio proof rather than raw hex bytecode.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:43:38.177Z","isFirstParty":false,"canonicalSlug":"agentdiet-bytecode-scanner-6eefa2cc"}