# Stablecoin Circulating Supply & Net Flow API

> Stablecoin Circulating Supply & Net Flow API is a paid API for AI agents from x402-datashop-production.up.railway.app, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-14).

Returns circulating supply, net mint/burn flows (24h/7d/30d), peg type, peg mechanism, and current price for one or more USD stablecoins, sourced from DeFiLlama with a 30-minute cache.

## Facts

- Endpoint: GET https://x402-datashop-production.up.railway.app/v1/stables/supply
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/stablecoin-circulating-supply-net-flow-api-07ac4923
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_oJGR0eXUqNSTACWd-5Jz0

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 stablecoin-circulating-supply-net-flow-api-07ac4923
```

Example prompt: What are the current circulating supplies and net mint/burn flows for the top 15 stablecoins, including their peg type and price?

## When to prefer this

Use this endpoint when you need circulating supply figures with computed net mint/burn flow deltas for stablecoins specifically — it pre-computes delta_24h/delta_7d/delta_30d so you do not need to diff historical snapshots yourself. Prefer over generic DeFiLlama API calls when you need peg type and mechanism metadata alongside supply in a single call. Especially useful for monitoring stablecoin expansion or contraction trends.

## Known failure modes

- Unknown symbol returns an empty result or 404
- top parameter outside 1-50 range returns a validation error
- DeFiLlama upstream downtime may cause stale or failed responses
- Payment not included or insufficient results in 402 Payment Required
- Network timeout from Railway hosting under high load

## How this service works

Circulating supply per stablecoin from DeFiLlama with computed net flows (delta_24h/delta_7d/delta_30d = net mint minus burn), peg type, peg mechanism and current price. Query: ?symbol=USDT for one asset, or ?top=10 (1-50, default 10) for the largest by supply. Served with a 30min cache.

## Output

A JSON array of stablecoin records each containing: symbol, circulating supply, net flow deltas over 24h/7d/30d (mint minus burn), peg type (e.g. fiat-backed, algorithmic), peg mechanism, and current price. Sourced from DeFiLlama and cached for 30 minutes. When querying by symbol (e.g. ?symbol=USDT), returns a single asset's record. When querying by top N, returns the N largest stablecoins by supply.

## 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": {
      "top": {
       "type": "integer",
       "default": 10,
       "maximum": 50,
       "minimum": 1,
       "description": "Number of largest stablecoins to return"
      },
      "symbol": {
       "type": "string",
       "description": "Stablecoin ticker, e.g. USDT (optional)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/stablecoin-circulating-supply-net-flow-api-07ac4923/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-datashop-production.up.railway.app](https://www.zero.xyz/host/x402-datashop-production.up.railway.app/llms.txt)
