# AgentDiet On-Chain Risk Intelligence

> AgentDiet On-Chain Risk Intelligence is a paid API for AI agents from serp-extract-72343955726.us-central1.run.app, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-21).

Assesses on-chain risk signals for blockchain addresses, tokens, or transactions to help agents make safe DeFi and crypto decisions

## Facts

- Endpoint: GET https://serp-extract-72343955726.us-central1.run.app/v1/onchain-risk?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-21
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentdiet-on-chain-risk-intelligence-5069ae3e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_PywcRi58UuFtDeGCKKbcY

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 agentdiet-on-chain-risk-intelligence-5069ae3e
```

Example prompt: Before I swap into this token at 0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984 on Ethereum, can you run an on-chain risk check and tell me if there are any red flags I should know about?

## When to prefer this

Choose this endpoint when an AI agent needs a quick, paid, per-call on-chain risk signal before executing a DeFi trade, approving a smart contract, or accepting a crypto payment — especially when operating autonomously and needing machine-readable risk scores with minimal token overhead. Prefer over free alternatives when freshness, compression, and B2A payment (x402/USDC) compatibility are required.

## Known failure modes

- Invalid or malformed blockchain address returns error
- Unsupported chain or network returns empty or error response
- Rate limiting or payment failure (402) if USDC payment not attached
- Address with no on-chain history may return low-signal or empty risk data
- Newly deployed contracts may have insufficient data for full risk scoring

## How this service works

15-App Autonomous Business-to-Agent (B2A) API Hub & MCP Suite. Supports Web Distillation, On-Chain Risk, DEX Token Intelligence, B2B Lead Enrichment, Domain OSINT, Email Verification, SEC Filings, GitHub Audits, Prompt Firewall, and native HTTP 402 (x402 Base USDC).

## Output

Returns a JSON object with on-chain risk data including risk scores, flags, threat categories, and any suspicious activity signals associated with the queried address or token, along with distillation metadata showing token savings and compression ratio.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "address"
   ],
   "properties": {
    "address": {
     "type": "string",
     "minLength": 1,
     "description": "0x EVM contract/wallet address on Base or Solana Base58 SPL Mint address"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "status",
    "roi_proof",
    "data"
   ],
   "properties": {
    "data": {
     "type": "object"
    },
    "status": {
     "type": "string"
    },
    "roi_proof": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {
   "mode": "markdown",
   "title": "Example Documentation",
   "content": "# Example Documentation\nClean agent-ready markdown..."
  },
  "status": "ok",
  "roi_proof": {
   "raw_tokens": 14200,
   "tokens_saved": 13520,
   "roi_multiplier": 67.6,
   "distilled_tokens": 680,
   "compression_ratio_pct": 95.2
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentdiet-on-chain-risk-intelligence-5069ae3e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from serp-extract-72343955726.us-central1.run.app](https://www.zero.xyz/host/serp-extract-72343955726.us-central1.run.app/llms.txt)
