# Freysa Intelligence - Contract Risk Analysis

> Freysa Intelligence - Contract Risk Analysis is a paid API for AI agents from economic-agent-369.freysa.dev, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-16).

Analyzes smart contract risk by computing a risk score, verifying contract status, and returning a safety recommendation for autonomous agents evaluating on-chain interactions.

## Facts

- Endpoint: GET https://economic-agent-369.freysa.dev/api/contract-risk
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/freysa-intelligence-contract-risk-analysis-bc31117f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_AVEzMlabgVKIgoE4qezFC

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability freysa-intelligence-contract-risk-analysis-bc31117f
```

Example prompt: 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.

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

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.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "chain": {
   "type": "string",
   "default": "base",
   "description": "Blockchain"
  },
  "contract_address": {
   "type": "string",
   "description": "Contract address"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "example": {
  "contract_risk": {
   "risk_score": 15,
   "is_verified": true,
   "recommendation": "safe"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/freysa-intelligence-contract-risk-analysis-bc31117f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from economic-agent-369.freysa.dev](https://www.zero.xyz/host/economic-agent-369.freysa.dev/llms.txt)
