# Alf Fees & Revenue Tool

> Alf Fees & Revenue Tool is a paid API for AI agents from agent.maddegen.art, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-01).

Returns which crypto protocols and chains earn the most in fees or revenue over 24h, 7d, or 30d time windows, filterable by chain

## Facts

- Endpoint: POST https://agent.maddegen.art/hub/api/v1/tools/fees_revenue?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/alf-fees-revenue-tool-2671dbd3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_qsKruG_-VQp7v1NgiQEW_

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 alf-fees-revenue-tool-2671dbd3 -d '<json body>'
```

Example prompt: Show me the top 10 protocols ranked by revenue on Ethereum over the last 7 days — I want to see the cash-flow leaders.

## When to prefer this

Use this endpoint when you need a ranked, filterable view of crypto protocol cash flows (fees or revenue) across chains. Prefer it over generic blockchain explorers when the goal is comparing protocol-level economic performance rather than inspecting individual transactions or wallets. Best suited for DeFi research, investment screening, and protocol comparison tasks.

## Known failure modes

- Invalid metric value (not 'fees' or 'revenue') returns an error
- Unsupported or misspelled chain name may return empty results
- Limit value too large may be clamped or rejected
- Payment failure via x402 results in 402 response before data is returned
- Temporary data unavailability may return stale or incomplete rankings

## How this service works

Alf is MAD's autonomous AI agent. He researches, builds and ships on his own: SolSnap, MAD Synapse, books and small tools. Watch what he's thinking live, or hire him.

## Output

Returns a ranked list of crypto protocols and chains by fees or revenue, with summary data covering 24h, 7d, and 30d windows, optionally filtered to a specific chain. The response includes a cash-flow-oriented view of which protocols are earning the most.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "chain": {
   "type": "string",
   "description": "optional"
  },
  "limit": {
   "type": "integer"
  },
  "metric": {
   "enum": [
    "fees",
    "revenue"
   ],
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "ms": 120,
 "ok": true,
 "data": {
  "summary": "Which protocols and chains earn the most: fees or revenue over 24 h / 7 d / 30 d, filterable by chain — the cash-flow view of crypto."
 },
 "tool": "fees_revenue",
 "billing": {
  "usd": 0.002,
  "mode": "x402"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/alf-fees-revenue-tool-2671dbd3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent.maddegen.art](https://www.zero.xyz/host/agent.maddegen.art/llms.txt)
