{"uid":"cap_21MJbIFPtAvxjJwsR3tDZ","slug":"contract-risk-api-37f3dda9","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/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_1gG9jNZkE8kqNwj3ab03x","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 a risk score by detecting upgradeable proxies and privileged functions from live bytecode.","exampleAgentPrompt":"Can you scan the Ethereum contract at 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 and tell me if it has any proxy upgrade patterns or privileged admin functions I should be worried about before I interact with it?","exampleUseCases":[{"title":"DeFi protocol safety check","prompt":"Before I deposit funds into this Base DeFi protocol at 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913, can you scan the contract and tell me if there are any admin backdoors or upgrade risks I should know about?"},{"title":"Token contract audit before trading","prompt":"I'm about to buy a new token on Ethereum — the contract is 0x6B175474E89094C44Da98b954EedeAC495271d0F. Can you run a risk scan on it and flag if the owner has any privileged functions that could rug me?"},{"title":"NFT contract review before minting","prompt":"Can you check the smart contract at 0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13d on Ethereum for proxy upgrade risks or special owner permissions before I mint from it?"}],"resultDescription":"Returns a risk score and details about the scanned contract, including whether it uses an upgradeable proxy pattern, any detected privileged or admin-only functions, and overall risk indicators derived from live on-chain bytecode analysis.","failureModes":["Invalid or non-existent contract address returns an error","Unsupported chain value (not 'base' or 'ethereum') returns a validation error","Contracts that use heavy obfuscation or non-standard bytecode may yield incomplete analysis","Network timeouts when fetching live bytecode from the chain","Payment failure due to insufficient USDC balance for x402 protocol"],"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 on Base or Ethereum. It is especially valuable for detecting proxy upgradeability (which allows contract logic to be silently swapped) and privileged functions (which indicate centralized admin control or potential rug-pull vectors). Prefer this over general blockchain explorers when you need a structured risk score rather than raw bytecode, and when you want instant automated analysis rather than manual auditing.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:30:39.878Z","isFirstParty":false}