# BaseBuilder DeFi Protocol Risk Assessment

> BaseBuilder DeFi Protocol Risk Assessment is a paid API for AI agents from bb-defi.vercel.app, paid per call via x402, $0.092638/call, status unknown (last checked 2026-09-15).

Assesses and scores the risk profile of a DeFi protocol based on on-chain and off-chain signals

## Facts

- Endpoint: POST https://bb-defi.vercel.app/api/defi/protocol-risk
- Price: $0.092638/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/basebuilder-defi-protocol-risk-assessment-7581d1a9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_H0MCjdR46babAhGCtOvoN

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 basebuilder-defi-protocol-risk-assessment-7581d1a9 -d '<json body>'
```

Example prompt: Can you assess the protocol risk for Aave on the Ethereum mainnet and give me a risk score and breakdown of the main risk factors before I commit any funds?

## When to prefer this

Use this endpoint when an AI agent needs to evaluate the safety and risk profile of a specific DeFi protocol before recommending it to a user, allocating funds, or integrating it into a DeFi workflow. Prefer this over generic smart contract audits when you need a scored, structured risk output rather than a raw audit report.

## Known failure modes

- Unknown or unsupported protocol identifier returns an error or empty result
- Invalid blockchain network specified causes a 400 bad request
- Protocol contract address not found on-chain leads to lookup failure
- Service unavailable or timeout if on-chain data sources are unreachable
- Insufficient metadata for newer or obscure protocols may yield low-confidence scores

## How this service works

BaseBuilder Defi API hub - 22 paid endpoints

## Output

Returns a structured risk assessment for the specified DeFi protocol, including an overall risk score, categorized risk factors (e.g. smart contract vulnerabilities, liquidity risk, governance risk), and potentially safety ratings or recommendations.

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/basebuilder-defi-protocol-risk-assessment-7581d1a9/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from bb-defi.vercel.app](https://www.zero.xyz/host/bb-defi.vercel.app/llms.txt)
