{"uid":"cap_9AglnJzpRPbRhjP602lZF","slug":"forgemesh-anomaly-tracker-defi-sequence-anomaly-detection-ce6752a7","name":"ForgeMesh Anomaly Tracker — DeFi Sequence Anomaly Detection","description":"Anomaly scan for a DeFi protocol — unusual flows through major lending/DEX contracts","url":"https://anomaly.forgemesh.io/api/defi-scan","method":"POST","headers":{},"bodySchema":{"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...)"}}},"responseSchema":{"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}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.03","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.03/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_hW_RP1v5XiyCfRXee2-Up","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.03","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"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.","exampleAgentPrompt":"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.","exampleUseCases":[{"title":"Whale manipulation detection on Base","prompt":"Scan ForgeMesh for any whale sell followed by CEX inflow patterns on Uniswap v3 over the last 2 hours — I need the novelty score and narrative to understand if there's coordinated manipulation happening."},{"title":"Real-time DeFi depeg risk monitoring","prompt":"Monitor Curve 3pool across all chains with ForgeMesh right now — flag any high-novelty sequences that could signal stablecoin depeg stress, and give me the sequence score and event timeline."},{"title":"Compound protocol anomaly investigation","prompt":"Check ForgeMesh for unusual transaction sequences in Compound v3 on Arbitrum over the last 6 hours — I want to see if there are any exchange stress events or suspicious mempool patterns with a high anomaly rating."}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T12:31:44.186Z","isFirstParty":false}