# GET /v1/solana/metrics/stablecoin-supply

Solana stablecoin supply metric: how much a registry stablecoin was net minted or net burned over the last 1h, 24h, 7d or 30d, from its live supply and its stored 15-minute series.

## Purpose

Reports how much the supply of a registry stablecoin on Solana changed over a window: the live supply against the point the service stored at the window start. `mint` is a mint of the stablecoin registry (USDC, EURC or PYUSD, the registry `/v1/solana/stablecoin/{mint}` checks); any other mint answers 400 naming it, with no read; the body echoes it as `mint`. `window` is `1h`, `24h` (the default), `7d` or `30d`; any other value answers 400 naming it, with no read. The service reads the raw supply of each registry mint once in every UTC 15-minute slot and stores it under the slot start; it keeps those points 30 days, and a slot whose read failed or did not run stays empty: nothing is filled in later, because the provider plan in use serves no past account state (Helius `getHistoricalAccountInfo` is a beta of its Business plan). The window ends at the live supply read (`window_range.to_time`, equal to `meta.as_of`); its start time is `to_time` minus the window, and the stored point read is the one of the 15-minute slot that holds that time (`window_range.from_time` is that slot's start, while the stored supply was read during that slot), so `window_range.seconds` is the window length plus at most 15 minutes, in whole seconds. `net_change.value_atomic` = live raw supply − stored raw supply, an exact signed integer string in atomic units (positive is net minted, negative net burned, `0` when unchanged), and `net_change.value` = `value_atomic` / 10^decimals, exact, with the decimals of the live mint read; `net_change.value` is `null` for a mint with ScaledUiAmount or InterestBearing, whose display amount the extension scales; `value_atomic` stays exact. When that slot has no stored point, `net_change` and `window_range` are `null` and `reasons` holds `warming_up` when the stored series holds no point older than that slot (a `30d` window whose start point is missing normally reports `warming_up`, because points are kept 30 days counted from the latest snapshot run; until the current slot's run has purged the point just older than the start, it can report `gap`), else `gap` (older points are stored but that slot has none). `reasons` also holds `ui_amount_scaled` whenever the mint carries ScaledUiAmount or InterestBearing, whatever the window, and lists its codes in the order `warming_up`, `gap`, `ui_amount_scaled`; it is empty when `net_change` is served for a mint without either extension. Neither the supply itself nor a baseline is returned: only its net change. The live supply is one mint read at finalized commitment. Under Alpenglow (live on mainnet since 2026-10-21) `finalized` equals `confirmed`; the figures are final when served. `meta` describes that read only, and the stored point is reported in `window_range`. A registry mint with no account answers 404 `solana-mint-not-found`. When the live mint read fails and no recent cached read is left, or the stored point cannot be read and no recent cached point is left, the answer is 503 `upstream-unavailable`. The stored point comes from the summary of the stored series, computed once per 15-minute slot for the latest recorded slot and cached until that slot ends (a request made before the current slot is recorded gets the previous slot's summary); the summary holds the window start points of its slot and of the slots just before and after it, and a start slot outside them is read on its own and cached for 300 seconds. The net change is a defined computation over the chain and the stored series, not advice. An answer is fresh for 4 seconds, the policy of its live mint read. The example is the answer at a recorded USDC mint read while its stored series is still warming up.

## When to use

To see whether a registry stablecoin on Solana was net minted or net burned over the last hour, day, week or month, and by how much.

## When not to use

To read a mint's current supply, decimals or authorities (use `/v1/solana/token/{mint}`), or to check that a mint is the canonical stablecoin (use `/v1/solana/stablecoin/{mint}`); a mint outside the registry is refused with 400.

## Parameters

| Name | In | Required | Description | Constraints | Example |
|---|---|---|---|---|---|
| `mint` | query | yes | Registry stablecoin mint: USDC, EURC or PYUSD. | One of EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v (USDC), HzwqbKZw8HxMN6bF2yFZNrht3c2iXXzpKcFu7uBEDKtr (EURC) or 2b1kV6DkPAnxd5ixfnxCpjxmKwqjjaYmCZfHsFu24GXo (PYUSD); any other value is rejected with 400 | `EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v` |
| `window` | query | no | Window back from the live supply read: 1h, 24h, 7d or 30d (default 24h). | One of 1h, 24h, 7d or 30d; any other value is rejected with 400 | `24h` |

## Request example

```sh
curl -s "https://api.criptonlabs.com/v1/solana/metrics/stablecoin-supply?mint=EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v&window=24h"
```

## Response example (200)

```json
{
  "mint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
  "net_change": null,
  "window_range": null,
  "reasons": [
    "warming_up"
  ],
  "meta": {
    "slot": 456932447,
    "commitment": "finalized",
    "as_of": "2026-10-14T12:00:03.000Z",
    "age_seconds": 0,
    "cache": "miss",
    "stale": false
  }
}
```

## Errors

- 400 [invalid-parameters](https://api.criptonlabs.com/errors/invalid-parameters.md)
- 404 [solana-mint-not-found](https://api.criptonlabs.com/errors/solana-mint-not-found.md)
- 429 [rate-limited](https://api.criptonlabs.com/errors/rate-limited.md)
- 503 [upstream-unavailable](https://api.criptonlabs.com/errors/upstream-unavailable.md)

## Caching

Fresh for 4 seconds; on upstream failure the last good value is served for up to 30 seconds (`meta.stale` is `true`), then the service answers 503. See the [freshness guide](https://api.criptonlabs.com/docs/guides/freshness.md).

## Rate limit

Tier `expensive`. See the [rate-limits guide](https://api.criptonlabs.com/docs/guides/rate-limits.md).

## MCP tool

The MCP tool `solana_metrics_stablecoin_supply` returns the same data. See the [MCP quickstart](https://api.criptonlabs.com/docs/guides/mcp-quickstart.md).
