# Magneta Finance Smart Contract Risk Analyzer

> Magneta Finance Smart Contract Risk Analyzer is a paid API for AI agents from x402.magneta.finance, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-16).

Returns a deterministic 0-100 risk score and detailed on-chain security report for any EVM smart contract, covering proxy patterns, ownership, risky function selectors, source verification, and static analysis.

## Facts

- Endpoint: GET https://x402.magneta.finance/v1/risk/:chainId/:address?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/magneta-finance-smart-contract-risk-analyzer-c18289c2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_qhaEolftXM_OFNz4XlLh9

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 magneta-finance-smart-contract-risk-analyzer-c18289c2
```

Example prompt: Can you run a risk report on the smart contract at 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 on Ethereum mainnet (chain ID 1) and tell me the risk score and any dangerous selectors or ownership issues it flagged?

## When to prefer this

Use this endpoint when you need a fast, deterministic, pay-per-call security signal for any EVM smart contract before interacting with it, integrating it into a product, or listing it — especially when you want a structured risk score alongside specific findings like proxy detection and risky selectors, without waiting for a full manual audit. Prefer this over generic block explorers when you need machine-readable risk metadata an agent can act on.

## Known failure modes

- Invalid or non-existent contract address returns an error or empty report
- Unsupported chain ID returns a not-found or unsupported-network error
- Unverified source code may limit static analysis depth and completeness
- Network RPC issues for the target chain may cause timeouts
- Contracts with complex proxy chains may have incomplete proxy resolution

## How this service works

Deterministic on-chain smart-contract risk report (proxy, ownership, risky selectors, verified source, static analysis) with a 0-100 score.

## Output

A structured risk report containing a 0-100 composite risk score, proxy pattern detection, ownership and admin control analysis, flagged risky function selectors, whether the contract source is verified on-chain, and static analysis findings highlighting potential vulnerabilities or dangerous patterns.

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/magneta-finance-smart-contract-risk-analyzer-c18289c2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.magneta.finance](https://www.zero.xyz/host/x402.magneta.finance/llms.txt)
