F

Forgemesh · Mempool Anomaly

by Forgemesh

GETBase

$0.01

per call · USD Coin on Base

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.

Endpoint

GET https://anomaly.forgemesh.io/api/mempool-anomaly

8

Calls / 30d

6

Unique payers / 30d

Sep 9

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://anomaly.forgemesh.io/api/mempool-anomaly", {
  method: "GET",
});
const data = await res.json();
cURL
curl -X GET \
  "https://anomaly.forgemesh.io/api/mempool-anomaly?chain=ethereum" \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "chain": "ethereum",
  "domain": "mempool",
  "gas": {
    "base_fee_gwei": 12.1,
    "current_gwei": 45.2,
    "median_20block_gwei": 14.5,
    "ratio_vs_median": 3.12
  },
  "novelty": "high",
  "peak_window": [
    "GAS_SPIKE",
    "BIG_SWAP",
    "WHALE_PENDING",
    "MEV_SIGNAL",
    "PENDING_NORMAL"
  ],
  "pending_count": 247,
  "pending_stats": {
    "big_swaps": 3,
    "contract_deploys": 2,
    "total_value_eth": 1823.5,
    "whale_pending": 1
  },
  "sequence_score": 72,
  "story": "MEV Attack"
}

Payment details

Pay to0xe295b6641b32998537ae0f8e61babf729eaed6e5
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

Pin it to the top of Onchain Data and the homepage with a featured placement.

Get featured →

More from Forgemesh & similar services