# Onchain Intel Agent API

> Onchain Intel Agent API is a paid API for AI agents from onchainrisk-os.onrender.com, paid per call via x402, $0.5/call, status unknown (last checked 2026-11-28).

Performs on-chain intelligence tasks such as risk scanning, contract review, token profiling, wallet exposure checks, and liquidity analysis on blockchain targets, gated via x402 micropayments.

## Facts

- Endpoint: POST https://onchainrisk-os.onrender.com/task?utm_source=zero.xyz
- Price: $0.5/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-28
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/onchain-intel-agent-api-0d633015
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_BG8et3Z1m5R8C2ddv93IU

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 onchain-intel-agent-api-0d633015 -d '<json body>'
```

Example prompt: Run a deep risk scan on Ethereum address 0xAbc123...def for contract_review — I want to know if there are any vulnerabilities or red flags before I interact with it.

## When to prefer this

Use this endpoint when you need production-grade on-chain intelligence for a specific blockchain address, contract, token, or wallet — especially when you need structured risk scores, vulnerability reviews, or holder analytics in a single call. Prefer this over generic blockchain explorers when you need agent-ready, structured output with selectable depth and task type. Best for DeFi risk management, security auditing, and compliance workflows.

## Known failure modes

- Missing required 'target' or 'task_type' field returns a 400 validation error
- Invalid task_type enum value returns a schema validation error
- Payment not fulfilled via x402 results in a 402 Payment Required response
- Unsupported or unrecognized chain identifier may cause lookup failure
- Target address not found on-chain may return empty or null results
- Service may time out on 'deep' analysis of complex contracts

## How this service works

Production-grade on-chain intelligence agent gated with x402 payments

## Output

Returns an intelligence report corresponding to the requested task type — e.g. a risk score and flagged issues for risk_scan, vulnerability details for contract_review, token metrics and holder data for token_profile, or exposure and liquidity summaries for wallet/liquidity checks. Output depth varies by the 'depth' parameter (basic, standard, deep).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "target",
  "task_type"
 ],
 "properties": {
  "chain": {
   "type": "string"
  },
  "depth": {
   "enum": [
    "basic",
    "standard",
    "deep"
   ],
   "type": "string"
  },
  "notes": {
   "type": "string"
  },
  "target": {
   "type": "string"
  },
  "task_type": {
   "enum": [
    "risk_scan",
    "contract_review",
    "token_profile",
    "wallet_exposure_check",
    "liquidity_check",
    "holder_distribution_check",
    "monitoring_snapshot",
    "entity_normalization"
   ],
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/onchain-intel-agent-api-0d633015/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from onchainrisk-os.onrender.com](https://www.zero.xyz/host/onchainrisk-os.onrender.com/llms.txt)
