Stablecoin supply by asset
POST /api/stablecoinsStablecoins ranked by circulating supply from DefiLlama's free stablecoin dataset: name, symbol, peg currency and type (USD, EUR, JPY, VAR...), peg mechanism (fiat-backed, crypto-backed, algorithmic), current price and USD peg deviation, circulating supply in peg units and USD, 1d/7d/30d supply change, and per-chain circulation (top chains + count). Send POST /api/stablecoins with no required fields (5 optional) and pay $0.003 per call over x402 or MPP (there is no free tier). It returns a JSON object with source, fetchedAt, cached, filters, totals and 3 more.
Filter by peg currency, mechanism, chain (then ranked by supply on that chain) or a name/symbol search; limit up to 100. Totals carry matched circulating USD. Keyless public data.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
peg | string | no | Peg currency filter: USD (default), EUR, JPY, GBP, CHF, VAR, ... or "all". |
mechanism | string | no | "fiat-backed", "crypto-backed" or "algorithmic". |
chain | string | no | Chain filter as DefiLlama names it (Ethereum, Tron, Solana, Base, BSC, Arbitrum...). Rows are then ranked by circulation on that chain. |
search | string | no | Name/symbol substring filter (case-insensitive). |
limit | number | no | Rows to return (default 20, max 100). |
Example request
curl -i -X POST https://agent402.tools/api/stablecoins \
-H "Content-Type: application/json" \
-d '{"peg":"USD","limit":5}'
Without payment this returns HTTP 402 Payment Required with the exact price for stablecoins; any x402 v2 or MPP client pays it and retries.
Example response
{
"source": "defillama-stablecoins",
"fetchedAt": "2026-08-22T12:00:00.000Z",
"cached": true,
"filters": {
"peg": "USD",
"mechanism": null,
"chain": null,
"search": null
},
"totals": {
"circulatingUsd": 307000000000,
"assetCount": 300
},
"matched": 300,
"count": 1,
"stablecoins": [
{
"rank": 1,
"id": "1",
"name": "Tether",
"symbol": "USDT",
"geckoId": "tether",
"pegType": "peggedUSD",
"pegCurrency": "USD",
"pegMechanism": "fiat-backed",
"price": 0.9998,
"pegDeviationPct": -0.02,
"circulating": 183181226868,
"circulatingUsd": 183181226868,
"change1dPct": 0.08,
"change7dPct": 0.01,
"change30dPct": 0.01,
"chainCount": 120,
"chains": [
{
"chain": "Tron",
"circulating": 90000000000
}
]
}
]
}
| Field | Type | Always present | In the example |
|---|---|---|---|
source | string | yes | defillama-stablecoins |
fetchedAt | string | yes | 2026-08-22T12:00:00.000Z |
cached | boolean | yes | true |
filters | object | yes | 4 fields: peg, mechanism, chain, search |
totals | object | yes | 2 fields: circulatingUsd, assetCount |
matched | number | yes | 300 |
count | number | yes | 1 |
stablecoins | array of objects | yes | 1 item in the example |
From an MCP client
catalog.call {
"slug": "stablecoins",
"params": {
"peg": "USD",
"limit": 5
}
}
The hosted connector at https://agent402.tools/mcp needs a payment for stablecoins; 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/stablecoins 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/stablecoins", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
"peg": "USD",
"limit": 5
}),
});
Related tools
Stablecoin peg monitor
GET /api/stablecoin-pegLive $1-peg deviation for the top USD stablecoins (USDT, USDC, USDS, DAI, USDe, PYUSD, USDD, TUSD, FDUSD by default, or …
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 …
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…
Coin profile
GET /api/coin-profileFull profile of one coin by id: name/symbol, description, categories, contract addresses per platform, links (homepage, …
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 TVL by chain
POST /api/defi-chainsBlockchains ranked by DeFi TVL from DefiLlama's free chain list: name, TVL in USD, share of total DeFi TVL, native token…