{"uid":"cap_JGjxSOWUjjSCYmyI0NwVi","slug":"contract-risk-api-21d760d2","name":"Contract Risk API","description":"On-chain contract risk score: detects upgradeable proxies and privileged functions from live bytecode. Use before trading/interacting with an unfamiliar contract.","url":"https://contract-risk-api-six.vercel.app/v1/scan","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"chain":{"enum":["base","ethereum"],"type":"string","description":"Chain to query (default: base)"},"address":{"type":"string","description":"0x-prefixed EVM contract address to scan"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Lcp9GJN3iOqowEzNWl7uM","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Scans an EVM smart contract address on Base or Ethereum and returns an on-chain risk score by detecting upgradeable proxies and privileged functions from live bytecode.","exampleAgentPrompt":"Can you scan the contract at 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 on Ethereum and tell me if it has any upgradeable proxy patterns or privileged admin functions I should be worried about before I interact with it?","exampleUseCases":[{"title":"DeFi protocol safety check","prompt":"Before I provide liquidity to this new DeFi protocol, can you scan the contract 0x7d2768dE32b0b80b7a3454c06BdAc94A69DDc7A9 on Ethereum and tell me if there are any admin controls or upgrade mechanisms that could put my funds at risk?"},{"title":"Token contract audit before trading","prompt":"I'm about to buy a token and want to make sure the contract isn't sketchy — can you run a risk scan on 0x6982508145454Ce325dDbE47a25d4ec3d2311933 on Ethereum and flag any privileged functions or proxy patterns?"},{"title":"NFT contract verification on Base","prompt":"Can you check the contract at 0x7c6b91D9Be155A6Db01f749217d76fF02A7227F2 on Base for me? I want to know if it's upgradeable or has any owner-only functions before I mint."}],"resultDescription":"Returns a risk score and detailed flags indicating whether the contract uses an upgradeable proxy pattern and whether it contains privileged or admin-gated functions, derived from analysis of the contract's live on-chain bytecode.","failureModes":["Invalid or non-existent contract address returns an error or empty result","Contract not deployed on the specified chain returns a not-found error","Unsupported chain value (other than 'base' or 'ethereum') returns a validation error","Network or RPC timeout when fetching live bytecode","Payment failure (x402 micropayment not processed) blocks the request"],"whenToPreferThis":"Use this endpoint when you need a quick, automated risk assessment of an unfamiliar EVM smart contract before trading, investing, or interacting with it — especially when you want to detect upgrade backdoors or privileged admin functions without performing a full manual audit. It is ideal for agent workflows that gate on-chain interactions behind a safety check.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:37:59.001Z","isFirstParty":false}