{"uid":"cap_T0bAG0f6Cvyg3HTlDGd8E","slug":"agentforge-contract-documentation-9f2e5a98","name":"AgentForge Contract Documentation","description":"Human-readable documentation for agents that need to understand a smart contract before calling it: function descriptions, parameter explanations, risk flags, and a security posture summary. Category: inference.","url":"https://agentforge-taupe.vercel.app/v1/contract-docs?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"chain":{"enum":["ethereum","base","polygon","arbitrum","optimism","avalanche"],"type":"string","default":"ethereum"},"address":{"type":"string","minLength":1,"description":"Contract address"},"focusFunctions":{"type":"array","items":{"type":"string"},"description":"Optional list of function names to focus on"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Oub5pCo7Qw1vkLhG-DPTB","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates human-readable documentation for a smart contract: function descriptions, parameter explanations, risk flags, and a security posture summary","exampleAgentPrompt":"Before I interact with the contract at 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 on Ethereum, can you pull up human-readable documentation for it — especially the transfer and approve functions — including any risk flags or security concerns I should know about?","exampleUseCases":[{"title":"DeFi protocol vetting before deposit","prompt":"I'm about to deposit funds into this DeFi protocol at 0x7d2768dE32b0b80b7a3454c06BdAc94A69DDc7A9 on Ethereum — can you show me what the main functions do and whether there are any risk flags I should worry about?"},{"title":"New token contract review","prompt":"Can you pull up documentation for the smart contract at 0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984 on Ethereum and explain each function in plain English, especially anything that looks risky?"},{"title":"Developer integration for Polygon contract","prompt":"I'm integrating with a contract on Polygon at 0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174 — can you generate readable docs for the mint and burn functions so my team understands the parameters and any security concerns before we build?"}],"resultDescription":"Returns human-readable documentation for the specified smart contract including: plain-English descriptions of each function, explanations of input parameters, identified risk flags (e.g. owner privileges, unchecked calls), and an overall security posture summary. If focusFunctions are specified, output is scoped to those functions.","failureModes":["Invalid or non-existent contract address returns an error","Unverified contracts with no ABI may produce incomplete or low-confidence documentation","Unsupported chain returns a validation error","Rate limiting or payment failure (402) if USDC payment is not properly configured","Contract with obfuscated or minimal bytecode may yield generic or incomplete results"],"whenToPreferThis":"Choose this endpoint when an AI agent or developer needs to understand what a smart contract does before interacting with it — especially in DeFi contexts where understanding function semantics and risk is critical. Prefer this over a raw security audit endpoint when you need quick, human-readable documentation rather than a deep vulnerability scan, and over a transaction decoder when you want pre-interaction understanding rather than post-transaction explanation.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T06:38:35.038Z","isFirstParty":false,"canonicalSlug":"agentforge-contract-documentation-9f2e5a98"}