B

botsmith · Stablecoin PEG

by botsmith

GETBaseX Layer

$0.015

per call · USD Coin on Base

Stablecoin Peg Monitor ($0.015/call): Live peg-and-supply snapshot for any stablecoin by symbol (USDC, USDT, DAI, ...): current price, signed deviation from peg in basis points, a depeg alert at 1%, total circulating supply and its top-chain breakdown. Keyless. Useful before settling or holding value in a given stablecoin.

Endpoint

GET https://x402.botsmith.dev/stablecoin/peg

7

Calls / 30d

3

Unique payers / 30d

Sep 10

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://x402.botsmith.dev/stablecoin/peg", {
  method: "GET",
});
const data = await res.json();
cURL
curl -X GET \
  "https://x402.botsmith.dev/stablecoin/peg?symbol=USDC" \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "chainCount": 84,
  "circulatingUsd": 73409336950,
  "depegAlert": false,
  "id": "2",
  "name": "USD Coin",
  "pegDeviationBps": -1,
  "pegMechanism": "fiat-backed",
  "pegTarget": 1,
  "pegType": "peggedUSD",
  "price": 0.9999,
  "symbol": "USDC",
  "topChains": [
    {
      "chain": "Ethereum",
      "circulatingUsd": 41000000000,
      "share": 0.558
    },
    {
      "chain": "Solana",
      "circulatingUsd": 9000000000,
      "share": 0.123
    },
    {
      "chain": "Base",
      "circulatingUsd": 4200000000,
      "share": 0.057
    }
  ]
}

Payment details

Pay to0xcb9b3f94387389e38ef2a7b3c0b851fb8325d7e9
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase, X Layer
Schemesexact

Is this your API?

Pin it to the top of DeFi and the homepage with a featured placement.

Get featured →

More from botsmith & similar services