{"uid":"cap_0cKEjnpUHaqOavq3R0v5F","slug":"forgemesh-mempool-anomaly-score-5718d7d8","name":"ForgeMesh Mempool Anomaly Score","description":"Returns a real-time mempool anomaly score with current gas price vs 20-block median, pending whale swaps, and contract deploy counts. Poll every 5s to monitor mempool for MEV or sandwich attacks and catch gas spikes or large pending swaps as they happen, before they land on-chain.","url":"https://anomaly.forgemesh.io/api/mempool-anomaly","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","properties":{"chain":{"type":"string","description":"Blockchain: ethereum or base (default: ethereum)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"gas":{"type":"object"},"chain":{"type":"string"},"story":{"type":"string","description":"Human-readable mempool anomaly label"},"novelty":{"enum":["low","medium","high","extreme"],"type":"string"},"peak_window":{"type":"array","items":{"type":"string"}},"pending_count":{"type":"integer"},"pending_stats":{"type":"object"},"sequence_score":{"type":"integer","description":"0=normal mempool, 100=highly anomalous"}}}}}}},"responseSchema":{"type":"json","example":{"gas":{"current_gwei":45.2,"base_fee_gwei":12.1,"ratio_vs_median":3.12,"median_20block_gwei":14.5},"chain":"ethereum","story":"MEV Attack","domain":"mempool","novelty":"high","peak_window":["GAS_SPIKE","BIG_SWAP","WHALE_PENDING","MEV_SIGNAL","PENDING_NORMAL"],"pending_count":247,"pending_stats":{"big_swaps":3,"whale_pending":1,"total_value_eth":1823.5,"contract_deploys":2},"sequence_score":72}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_gJoal-P_zJgsScvP8VBvB","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns a real-time anomaly score (0–100) for Ethereum or Base mempool activity, including gas spikes, pending whale swaps, MEV signals, and contract deploy bursts.","exampleAgentPrompt":"What's the current mempool anomaly score on Ethereum — are there any gas spikes, whale swaps, or MEV signals happening right now?","exampleUseCases":null,"resultDescription":"Returns a JSON object with a sequence_score (0=normal, 100=highly anomalous), a novelty enum (low/medium/high/extreme), a human-readable story label describing the anomaly type, pending transaction count, pending stats breakdown, peak window timestamps, and the chain queried.","failureModes":["Unsupported chain value returns an error — only 'ethereum' and 'base' are accepted","Payment not included or invalid x402 payment header results in 402 Payment Required","Upstream mempool data unavailable during network congestion may cause delayed or empty response","Rate limiting if polled faster than the intended 5-second interval"],"whenToPreferThis":"Use this endpoint when you need a fast, quantified anomaly signal for Ethereum or Base mempools — especially for trading bots, DeFi risk monitors, or alert systems that need to poll every few seconds for gas spikes, MEV activity, whale swaps, or contract deploy surges. Prefer this over on-chain analytics tools when you need pre-confirmation, pending-transaction-level signals.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:33:13.615Z","isFirstParty":false}