# ChainAnalyzer Stablecoin Peg Status

> ChainAnalyzer Stablecoin Peg Status is a paid API for AI agents from chain-analyzer.com, paid per call via x402, $0.05/call, status unknown (last checked 2026-10-11).

Returns the current peg status of a stablecoin token on a given chain, including 15-minute VWAP from real DEX trades, deviation from par, and a one-word status (on_peg / watch / dislocated).

## Facts

- Endpoint: GET https://chain-analyzer.com/api/v1/x402/token/:address/peg-status?utm_source=zero.xyz
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/chainanalyzer-stablecoin-peg-status-aae82a93
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_5SnvEpyuR1v0cN7vAaXFe

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability chainanalyzer-stablecoin-peg-status-aae82a93
```

Example prompt: Is the USDT contract 0xdAC17F958D2ee523a2206206994597C13D831ec7 still on its peg on Ethereum right now? Give me the VWAP deviation and the peg status word.

## When to prefer this

Use this endpoint when you need a fast, low-cost, on-chain-derived peg health check for a specific stablecoin token by contract address. It is ideal for agents monitoring DeFi protocol risk, treasury management systems, or AML workflows that need to flag depegged collateral. Prefer this over general price APIs when you need the structured on_peg/watch/dislocated classification and VWAP-based deviation rather than a raw spot price.

## Known failure modes

- Unknown or unsupported token contract address returns 404 or empty result
- Unsupported chain identifier returns an error or null data
- No DEX trade data available for token in the last 15-minute window may produce null VWAP
- Snapshot staleness if the daily snapshot has not refreshed may return outdated deviation
- Invalid address format returns a validation error

## How this service works

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 latest 15-minute VWAP of real DEX trades per chain, the deviation from par in the token's own peg currency (JPY or USD), and a one-word status (on_peg / watch / dislocated) at 0.5% and 2% thresholds. Reads a daily snapshot only — no external pricing call on the request path.

## Output

Returns a JSON object containing: the latest 15-minute VWAP computed from real DEX trades on the specified chain, the deviation from par expressed in the token's native peg currency (USD or JPY), and a one-word peg status string — either 'on_peg', 'watch' (deviation >0.5%), or 'dislocated' (deviation >2%). Data is sourced from a daily snapshot with no live external pricing call on the request path.

## Request schema (JSON Schema)

```json
{
 "properties": {
  "input": {
   "properties": {
    "queryParams": {
     "type": "object",
     "properties": {
      "chain": {
       "type": "string"
      },
      "address": {
       "type": "string"
      }
     }
    }
   }
  },
  "output": {
   "properties": {
    "example": {}
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/chainanalyzer-stablecoin-peg-status-aae82a93/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from chain-analyzer.com](https://www.zero.xyz/host/chain-analyzer.com/llms.txt)
