Stablecoin supply history
POST /api/stablecoin-supply-historyDaily total stablecoin circulating supply (in USD) over time from DefiLlama's free stablecoin charts, for all chains or one chain (Ethereum, Tron, Solana, Base...): most recent `days` points (default 90, max 3650) for a peg currency (USD default; EUR, JPY, ... or all pegs summed), with a summary (latest, first, min, max, mean, change over the window). Send POST /api/stablecoin-supply-history with no required fields (3 optional) and pay $0.002 per call over x402 or MPP (there is no free tier). It returns a JSON object with source, fetchedAt, chain, peg, totalPoints and 3 more.
Unknown chains answer 422. Keyless public data.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
chain | string | no | Chain name as DefiLlama spells it, or "all" (default). |
peg | string | no | Peg currency: USD (default), EUR, JPY, ... or "all" to sum every peg in USD. |
days | number | no | Most recent days to return (default 90, max 3650). |
Example request
curl -i -X POST https://agent402.tools/api/stablecoin-supply-history \
-H "Content-Type: application/json" \
-d '{"chain":"all","days":7}'
Without payment this returns HTTP 402 Payment Required with the exact price for stablecoin-supply-history; any x402 v2 or MPP client pays it and retries.
Example response
{
"source": "defillama-stablecoins",
"fetchedAt": "2026-08-22T12:00:00.000Z",
"chain": "all",
"peg": "USD",
"totalPoints": 3189,
"count": 2,
"summary": {
"latest": 308487484274,
"first": 307734935324,
"min": 307734935324,
"max": 308487484274,
"mean": 308111209799,
"changePct": 0.24
},
"points": [
{
"date": "2026-08-21",
"circulatingUsd": 307734935324
},
{
"date": "2026-08-22",
"circulatingUsd": 308487484274
}
]
}
| Field | Type | Always present | In the example |
|---|---|---|---|
source | string | yes | defillama-stablecoins |
fetchedAt | string | yes | 2026-08-22T12:00:00.000Z |
chain | string | yes | all |
peg | string | yes | USD |
totalPoints | number | yes | 3189 |
count | number | yes | 2 |
summary | object | yes | 6 fields: latest, first, min, max, mean, changePct |
points | array of objects | yes | 2 items in the example |
From an MCP client
catalog.call {
"slug": "stablecoin-supply-history",
"params": {
"chain": "all",
"days": 7
}
}
The hosted connector at https://agent402.tools/mcp needs a payment for stablecoin-supply-history; the stdio package pays it from a wallet or from AGENT402_CREDITS_KEY. Local install: npx -y agent402-mcp.
Errors and behavior
- Every field is optional. An input the tool rejects returns an HTTP 4xx whose body carries
error,tool,expected,requiredandexample. - A paid call that ends in any status of 400 or above is not charged over x402, MPP or a prepaid credits key: settlement is cancelled when the tool fails. The exception is a Tempo push credential, a transfer the buyer sent before the call: it settles before the tool runs, so if the tool then fails the payment is recorded as a refund owed to the paying wallet.
- Wallet-only: this tool reaches the network or stored state, so it has no proof-of-work tier. A prepaid card-credits key (
Authorization: Bearer a402_...) also pays it. - A
GETorHEADto /api/stablecoin-supply-history returns the same 402 quote, so the price can be read without a body. - An
Idempotency-Keyheader makes a retried paid call replay the first 200 instead of charging again (an answer larger than 1 MB is not replayed).
Paid call (JavaScript agent)
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client();
client.setSpendControls?.(false); // keep your own spending ceiling in code
registerExactEvmScheme(client, { signer: privateKeyToAccount(KEY) });
const payFetch = wrapFetchWithPayment(fetch, client);
const res = await payFetch("https://agent402.tools/api/stablecoin-supply-history", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
"chain": "all",
"days": 7
}),
});
Related tools
DeFi chain TVL history
POST /api/defi-chain-tvl-historyDaily TVL history for one chain (Ethereum, Base, Solana, Arbitrum...) or for all of DeFi (chain "all") from DefiLlama's …
DeFi yield pool history
POST /api/defi-yield-historyDaily APY and TVL history for one DeFi yield pool (DefiLlama pool id from defi-yields): per-day total/base/reward APY an…
Stablecoin supply by asset
POST /api/stablecoinsStablecoins ranked by circulating supply from DefiLlama's free stablecoin dataset: name, symbol, peg currency and type (…
Token price history (USD)
POST /api/token-price-historyHistorical USD price series for a token, by ticker symbol (ETH, BTC, SOL, ...) or by ERC-20 contract + network, at 5-min…
Coin market chart for a time window
GET /api/coin-market-chart-rangePrice, market cap and volume series for a coin over an ARBITRARY time window: `from`/`to` as unix seconds or ISO dates, …
DeFi yield screener
POST /api/defi-yieldsScreen DeFi yield pools (lending, LP, staking, vaults) across every chain from DefiLlama's free Yields dataset: filter b…