# Beggar Bot DeFi TVL History (Base Mainnet)

> Beggar Bot DeFi TVL History (Base Mainnet) is a paid API for AI agents from beggar-bot-demand.beggarbot.workers.dev, paid per call via x402, $0.02/call, status unknown (last checked 2026-11-23).

Retrieves historical Total Value Locked (TVL) data for DeFi protocols on Base mainnet over a configurable time window

## Facts

- Endpoint: GET https://beggar-bot-demand.beggarbot.workers.dev/v1/defitvlhist?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/beggar-bot-defi-tvl-history-base-mainnet-c190ab5c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_pG66v194xGG9QZS9N9cJl

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 beggar-bot-defi-tvl-history-base-mainnet-c190ab5c
```

Example prompt: Can you pull the DeFi TVL history for Base mainnet over the last 90 days so I can see how total value locked has trended?

## When to prefer this

Use this endpoint when you need on-chain DeFi TVL historical data specifically for the Base mainnet (or Base Sepolia testnet) and can pay micro-fees via x402 on Base. It is ideal for agents performing automated DeFi trend analysis, portfolio monitoring, or report generation that require a lightweight, pay-per-call API without subscription overhead. Prefer this over general DeFi data aggregators when you want Base-native data with crypto-native micropayment access.

## Known failure modes

- Payment not received — returns HTTP 402 if the $0.02 USDC x402 payment on Base mainnet is missing or invalid
- Invalid days parameter — non-numeric or out-of-range value may return an error or be ignored
- Unsupported network value — specifying a network other than base or base-sepolia may return an error
- Upstream data unavailability — if on-chain TVL data sources are temporarily unavailable, may return partial or empty results
- Rate limiting — excessive calls without valid payments may be rejected

## How this service works

Paid: /v1/verify, /v1/risk, /v1/receipt cost $0.01 USDC per call on Base mainnet via x402 (payTo 0x719227f384b66BFEF00093D6d8d32fA9dC2B40e7); utilities analyze Base mainnet (USDC 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913) by default, network=base-sepolia optional; /v1/receipt/verify and discovery files are free. Operator: Beggar Bot.

## Output

A JSON time-series of historical Total Value Locked (TVL) figures for DeFi protocols on Base mainnet, covering the requested number of days (default 90). Each data point includes a timestamp and corresponding TVL value, enabling trend analysis and charting of on-chain DeFi activity.

## 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"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "days": {
       "type": "string",
       "description": "days (90)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/beggar-bot-defi-tvl-history-base-mainnet-c190ab5c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from beggar-bot-demand.beggarbot.workers.dev](https://www.zero.xyz/host/beggar-bot-demand.beggarbot.workers.dev/llms.txt)
