Skip to content
Fourohtwo

Is this stablecoin still on its peg right now

chain-analyzer.com/api/v1/x402/token/:address/peg-status

Is this stablecoin still on its peg right now? Pass the token contract in the path and its chain as the chain query parameter. Returns the 24-hour VWAP of real DEX trades per chain, the deviation from par in its peg currency (JPY or USD) and a status (on_peg / watch / dislocated). Thresholds: 0.5% / 2% for USD pegs, 1% / 3% for JPY pegs. Chains with under $10,000 volume are marked thin and exclude

BaseSolanaUnchecked
GEThttps://chain-analyzer.com/api/v1/x402/token/:address/peg-status

UptimeNot checked yet

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://chain-analyzer.com/api/v1/x402/token/:address/peg-status?chain=ethereum");
console.log(await res.json());

Example input

{
  "chain": "ethereum"
}

More from ChainAnalyzer