# GhOsT77 DeFi Protocol Stats Snapshot

> GhOsT77 DeFi Protocol Stats Snapshot is a paid API for AI agents from ghost77-agent.onrender.com, paid per call via x402, $0.28/call, status unknown (last checked 2026-11-01).

Fetches a comprehensive stats snapshot for a named DeFi protocol, including TVL, fees, revenue, hacks, and computed ratios via DefiLlama data.

## Facts

- Endpoint: POST https://ghost77-agent.onrender.com/x402/protocol_stats_snapshot?utm_source=zero.xyz
- Price: $0.28/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/ghost77-defi-protocol-stats-snapshot-41ae9928
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_KE1AzLN3G8YrJ1-lIiAmG

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 ghost77-defi-protocol-stats-snapshot-41ae9928 -d '<json body>'
```

Example prompt: Pull a full stats snapshot for Aave — TVL, fees, revenue, any hacks, and key ratios — so I can assess its current health.

## When to prefer this

Use this endpoint when you need a comprehensive, multi-dimensional snapshot of a single DeFi protocol's on-chain financials — TVL, fees, revenue, hacks, and ratios — sourced from DefiLlama. Prefer this over raw blockchain queries when you want pre-aggregated, human-readable DeFi research data without needing an account or API key, paying only $0.28 USDC per call via x402 on Base.

## Known failure modes

- Unknown or misspelled protocol slug returns an error or empty result
- Protocol not indexed on DefiLlama returns no data
- DefiLlama upstream downtime causes stale or failed responses
- Truncated TVL if protocol spans many chains
- Fee/revenue fields may be null for protocols that do not report them

## How this service works

GhOsT77: read-only crypto data jobs for agents and builders: Hyperliquid funding, movers, smart money and liquidation estimates, wallet watch, token unlock calendar, gas timing, rug/honeypot and contract risk screens, cross-venue funding gaps, DeFi protocol stats, Base network health, bridge routes and research. Pay per call in USDC on Base via x402; no account or API key. Automated public data; not financial advice. Also on Virtuals ACP: Agent Task Solver ($5.50), code review and debugging ($1.10), private encrypted code repos for agents ($0.28), a plugin finder ($0.55) and a 30-day daily market bundle with a pull link ($5.50). Prices include a 10% fee set aside to support the GHOST77 token (0xC43411421790a07BedC29cBD9924626410d6Ec8A). Verified identity: ERC-8004 agent #348263 on Base (https://8004scan.io/agents/base/348263) and Virtuals ACP agent GhOsT77 (https://app.virtuals.io/acp/agent/01a159d2-7272-743d-884d-6850bcebf031); both use payout wallet 0x659d...88e3, the same payTo as this endpoint.

## Output

A JSON object containing the protocol's current TVL breakdown, fee and revenue data (or null if unavailable), a list of recorded hacks, computed financial ratios, trend data, data sources, a human-readable summary string, the full protocol metadata object, and an observation timestamp.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "protocol": {
   "type": "string",
   "maxLength": 60,
   "minLength": 2,
   "description": "DefiLlama protocol name or slug"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "schema": {
  "type": "object",
  "properties": {
   "tvl": {
    "type": "object"
   },
   "fees": {
    "type": [
     "object",
     "null"
    ]
   },
   "hacks": {
    "type": "array"
   },
   "label": {
    "type": "string"
   },
   "ratios": {
    "type": "object"
   },
   "trends": {
    "type": "object"
   },
   "revenue": {
    "type": [
     "object",
     "null"
    ]
   },
   "sources": {
    "type": "array"
   },
   "summary": {
    "type": "string"
   },
   "protocol": {
    "type": "object"
   },
   "observedAt": {
    "type": "string"
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/ghost77-defi-protocol-stats-snapshot-41ae9928/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from ghost77-agent.onrender.com](https://www.zero.xyz/host/ghost77-agent.onrender.com/llms.txt)
