# VAPE Treasury Composition

> VAPE Treasury Composition is a paid API for AI agents from vape-x402.vapex402.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Returns a protocol's on-chain treasury composition including total USD value, own-token USD value, and own-token share percentage as a fragility signal.

## Facts

- Endpoint: GET https://vape-x402.vapex402.workers.dev/data/treasury
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/vape-treasury-composition-37dfd417
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_tTkKwBr4cX6zdOzmH0hkB

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 vape-treasury-composition-37dfd417
```

Example prompt: What does Aave's on-chain treasury look like — how much is it worth in total and what fraction of it is just their own AAVE token?

## When to prefer this

Use this endpoint when you need to assess a specific DeFi protocol's treasury health and concentration risk — specifically whether the treasury is dangerously over-weighted in its own native token. Prefer this over general protocol endpoints when the question is specifically about treasury composition and fragility rather than TVL, fees, or token price.

## Known failure modes

- Invalid or unknown protocol slug returns an error or empty result
- Protocol has no tracked treasury data, returning nulls or zeroes
- Upstream data source outage causes stale or missing treasury figures
- Payment not processed correctly via x402 results in 402 Payment Required

## How this service works

VAPE treasury — A protocol's on-chain treasury composition — total USD, own-token USD, and the own-token share (a treasury that's ~all its own token is a fragility signal).

## Output

Returns a JSON object with the protocol's total treasury value in USD, the portion denominated in the protocol's own token in USD, and the own-token share as a ratio or percentage — a high own-token share flags treasury fragility/concentration risk.

## 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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "slug"
     ],
     "properties": {
      "slug": {
       "type": "string",
       "description": "protocol slug"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "slug": "uniswap",
  "treasury_usd": 4000000000,
  "own_token_usd": 3800000000,
  "own_token_share": 0.95
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/vape-treasury-composition-37dfd417/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from vape-x402.vapex402.workers.dev](https://www.zero.xyz/host/vape-x402.vapex402.workers.dev/llms.txt)
