# AgentDiet On-Chain Risk Intelligence Endpoint

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

Retrieves on-chain risk analysis and intelligence data for blockchain addresses, tokens, or transactions via a pay-per-call HTTP 402 API

## Facts

- Endpoint: GET https://onchain-risk-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-endpoint-03f575fb
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_HY6Uts1PSP34kO7nOrB0d

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-endpoint-03f575fb
```

Example prompt: Can you pull an on-chain risk assessment for the wallet address 0xABC123... and tell me if it's flagged as high risk or suspicious?

## When to prefer this

Choose this endpoint when you need on-chain risk scoring or intelligence for a specific blockchain address, token, or transaction and want results returned as compressed, agent-ready markdown that minimizes token usage. Prefer this over generic blockchain explorers when you need a structured risk verdict rather than raw transaction data, and when you're operating in a pay-per-call agent workflow using USDC micropayments via x402.

## Known failure modes

- Payment not provided or insufficient USDC via HTTP 402 — returns 402 Payment Required
- Invalid or malformed blockchain address — returns error status
- Address not found on supported chains — empty or null risk data returned
- Rate limiting if too many calls in quick succession
- Cloud Run cold start may increase latency on first call

## 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 containing a risk intelligence report as agent-ready distilled markdown, along with ROI/compression metadata showing raw token count, distilled token count, compression ratio, and an ROI multiplier indicating how much token context was saved. The 'data' field includes mode, title, and content fields with structured risk findings.

## 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-endpoint-03f575fb/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from onchain-risk-72343955726.us-central1.run.app](https://www.zero.xyz/host/onchain-risk-72343955726.us-central1.run.app/llms.txt)
