跳至主要内容

GET /api/transparency/revenue

Two-channel revenue summary. Subscription channel (Stripe + crypto- donation tier subs) is uncapped; swap channel is capped at the foundation pot's daily mint (~$1,112/day at 1 ZEQ/Z mint rate).

Auth

None. Public.

Request

curl https://YOUR-FRAMEWORK/api/transparency/revenue

Response · 200 OK

{
"ok": true,
"captured_at": "2026-05-10T13:08:32.412Z",
"channels": {
"subscriptions": {
"active_subs": 42,
"mrr_usd": "1247.00",
"lifetime_revenue_usd": "8419.50",
"tier_breakdown": {
"starter": 21,
"builder": 14,
"advanced": 5,
"architect": 2
}
},
"swap": {
"lifetime_usd": "12480.00",
"lifetime_zqt_sold": "1248000",
"today_usd": "78.50",
"today_zqt_sold": "7850",
"daily_cap_usd": "1112.00"
},
"protocol_fee": {
"lifetime_zqt_to_foundation": "84291",
"today_zqt_to_foundation": "1247"
}
}
}

Channel definitions

  • subscriptions — recurring revenue from Stripe + crypto-donation tier subs. Uncapped; each subscriber funds their own tier-locked drip from their own machine's mint, never from the pot.
  • swap — one-shot crypto purchases of ZEQ at list price ($0.01/ZEQ). Capped at the foundation pot's daily mint, so today's max is whatever the pot has minted in the last 24h (~111,197 ZEQ × $0.01 ≈ $1,112).
  • protocol_fee — 20% of every paid framework action accrues to the foundation pot's tokens_received counter. Scales with usage.