# ForgeMesh Anomaly Tracker — DeFi Sequence Anomaly Detection

> ForgeMesh Anomaly Tracker — DeFi Sequence Anomaly Detection is a paid API for AI agents from anomaly.forgemesh.io, paid per call via x402, $0.03/call, status unknown (last checked 2026-09-15).

Detects real-time anomalous event sequences (e.g. whale sell → CEX inflow patterns) in DeFi protocols on Ethereum, Base, or Arbitrum, returning a novelty score and narrative story.

## Facts

- Endpoint: POST https://anomaly.forgemesh.io/api/defi-scan
- Price: $0.03/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/forgemesh-anomaly-tracker-defi-sequence-anomaly-detection-ce6752a7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_9AglnJzpRPbRhjP602lZF

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 forgemesh-anomaly-tracker-defi-sequence-anomaly-detection-ce6752a7 -d '<json body>'
```

Example prompt: Check ForgeMesh for anomalous event sequences on Aave v3 on Ethereum over the last 4 hours — I want to know the sequence score, novelty level, and what kind of stress pattern is showing up.

## When to prefer this

Use this endpoint when you need real-time, sequence-aware anomaly detection on specific DeFi protocols — particularly when you want to identify ordered behavioral patterns (whale sells followed by CEX inflows) rather than simple price or volume spikes. Prefer this over generic on-chain analytics when you need a narrative story label and novelty scoring derived from NASA-style sequential anomaly algorithms.

## Known failure modes

- Unsupported chain value returns validation error
- Invalid or unrecognized protocol name may return empty results
- Contract address not indexed may yield no events
- Lookback window outside allowed enum (1h, 4h, 24h, 168h) causes request failure
- Payment not fulfilled via x402 results in 402 Payment Required
- Mempool data lag may cause stale sequence analysis during high congestion

## How this service works

Anomaly scan for a DeFi protocol — unusual flows through major lending/DEX contracts

## Output

Returns a JSON object with the blockchain chain, protocol name, contract address, a narrative 'story' label (e.g. 'Exchange Stress'), a novelty rating (e.g. 'high'), an ordered peak_window array of event types (e.g. ['CEX_INFLOW','WHALE_SELL','CEX_INFLOW']), a numeric sequence_score (0-100), and the number of events collected during the scan window.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "chain": {
   "type": "string",
   "description": "Blockchain: ethereum, base, or arbitrum"
  },
  "window": {
   "type": "string",
   "description": "Lookback window: 1h, 4h, 24h, or 168h"
  },
  "protocol": {
   "type": "string",
   "description": "Protocol name (uniswap_v3, aave_v3, aave_v2, curve_3pool, compound_v3) or contract address (0x...)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "chain": "ethereum",
  "story": "Exchange Stress",
  "domain": "financial",
  "address": "0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2",
  "novelty": "high",
  "protocol": "aave_v3",
  "peak_window": [
   "CEX_INFLOW",
   "WHALE_SELL",
   "CEX_INFLOW"
  ],
  "sequence_score": 61
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/forgemesh-anomaly-tracker-defi-sequence-anomaly-detection-ce6752a7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from anomaly.forgemesh.io](https://www.zero.xyz/host/anomaly.forgemesh.io/llms.txt)
