# TokenGuard Protocol Revenue API

> TokenGuard Protocol Revenue API is a paid API for AI agents from eltociear-tokenguard.hf.space, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-14).

Returns protocol revenue metrics and analytics for DeFi protocols on-chain

## Facts

- Endpoint: POST https://eltociear-tokenguard.hf.space/protocol_revenue
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/tokenguard-protocol-revenue-api-fad389e0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_znRKbLzBhu2U4f4hdCNAM

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 tokenguard-protocol-revenue-api-fad389e0 -d '<json body>'
```

Example prompt: Pull the protocol revenue data for Uniswap from TokenGuard — I want to see how much fee revenue it has generated recently on-chain.

## When to prefer this

Choose this endpoint when you need on-chain protocol revenue and fee data for DeFi protocols specifically, especially when micropayment access via x402 on Base is acceptable. Prefer over general market data APIs when you need granular revenue/fee analytics rather than just price data.

## Known failure modes

- Unknown or unsupported protocol name returns empty or error response
- Invalid network/chain specification results in no data
- Stale or unavailable on-chain data may cause incomplete results
- Malformed request body returns 400-level error
- Service unavailability on Hugging Face Space returns 503

## How this service works

protocol revenue data for AI agents.

## Output

A JSON object containing protocol revenue metrics for the requested DeFi protocol, including fee revenue figures, time-series breakdowns, and on-chain earnings analytics aggregated from blockchain data.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "required": [],
     "properties": {}
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {}
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/tokenguard-protocol-revenue-api-fad389e0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from eltociear-tokenguard.hf.space](https://www.zero.xyz/host/eltociear-tokenguard.hf.space/llms.txt)
