{"uid":"cap_AVEzMlabgVKIgoE4qezFC","slug":"freysa-intelligence-contract-risk-analysis-bc31117f","name":"Freysa Intelligence - Contract Risk Analysis","description":"Smart contract risk assessment — is it verified? Is it upgradeable? Does it have dangerous functions? Checks proxy patterns, owner privileges, and known exploit vectors. Deterministic on-chain analysis, no LLM guesswork.","url":"https://economic-agent-369.freysa.dev/api/contract-risk","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"chain":{"type":"string","default":"base","description":"Blockchain"},"contract_address":{"type":"string","description":"Contract address"}}},"responseSchema":{"type":"object","example":{"contract_risk":{"risk_score":15,"is_verified":true,"recommendation":"safe"}}},"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_HmyuRioZejUKmQxNaQV5i","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":"Analyzes smart contract risk by computing a risk score, verifying contract status, and returning a safety recommendation for autonomous agents evaluating on-chain interactions.","exampleAgentPrompt":"Before my agent interacts with this smart contract, run a Freysa Intelligence contract risk check on it and tell me the risk score, whether it's verified, and if it's safe to proceed.","exampleUseCases":[{"title":"DeFi protocol safety check","prompt":"I'm about to have my agent deposit funds into this DeFi liquidity pool contract — can you run a contract risk analysis on it and tell me the risk score and whether it's safe?"},{"title":"Token contract vetting before swap","prompt":"Before I swap into this new token, check whether its contract is verified and what the risk score looks like — I want to make sure it's not a honeypot or rug pull."},{"title":"Autonomous agent pre-call security gate","prompt":"My agent is about to call an unfamiliar contract on Base — run a Freysa contract risk assessment on it first and only proceed if the recommendation comes back as safe."}],"resultDescription":"Returns a JSON object containing a numeric risk score (0-100, lower is safer), a boolean indicating whether the contract is verified on-chain, and a text recommendation (e.g. 'safe', 'caution', 'avoid') summarizing whether the contract is appropriate to interact with.","failureModes":["Invalid or malformed contract address returns an error","Contract not found on the target chain returns empty or null risk data","Network timeout or upstream blockchain node failure returns a 5xx error","Unverified contracts may return limited risk data with lower confidence","Incorrect chain specified results in no contract match"],"whenToPreferThis":"Use this endpoint when an autonomous agent needs a fast, pay-per-call smart contract security check before executing on-chain interactions, particularly on Base. Prefer this over generic block explorer lookups when you need a structured risk score and actionable safety recommendation rather than raw contract data. Best suited for pre-transaction security gating in agent workflows where low latency and programmatic output are required.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:30:15.694Z","isFirstParty":false}