Returns a real-time mempool anomaly score with current gas price vs 20-block median, pendi
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.
10000 (raw units)
price
6
calls / 30d
4
unique payers
2026-09-16
updated
Provider
anomaly.forgemesh.io · discovered, not yet claimed by its owner
Payment (x402 accepts[])
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0xE295B6641b32998537Ae0f8E61Babf729EAEd6E5",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "10000",
"maxTimeoutSeconds": 1800
}
]Output schema
{
"bazaar": {
"info": {
"input": {
"method": "GET",
"queryParams": {
"chain": "ethereum"
},
"type": "http"
},
"output": {
"example": {
"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"
},
"type": "json"
}
},
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"method": {
"enum": [
"GET"
],
"type": "string"
},
"queryParams": {
"properties": {
"chain": {
"description": "Blockchain: ethereum or base (default: ethereum)",
"type": "string"
}
},
"type": "object"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"properties": {
"chain": {
"type": "string"
},
"gas": {
"type": "object"
},
"novelty": {
"enum": [
"low",
"medium",
"high",
"extreme"
],
"type": "string"
},
"peak_window": {
"items": {
"type": "string"
},
"type": "array"
},
"pending_count": {
"type": "integer"
},
"pending_stats": {
"type": "object"
},
"sequence_score": {
"description": "0=normal mempool, 100=highly anomalous",
"type": "integer"
},
"story": {
"description": "Human-readable mempool anomaly label",
"type": "string"
}
},
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}
},
"builder-code": {
"info": {
"a": "bc_4ypyymtf"
},
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"a": {
"description": "App builder code",
"pattern": "^[a-z0-9_]{1,32}$",
"type": "string"
},
"s": {
"description": "Service builder codes",
"items": {
"pattern": "^[a-z0-9_]{1,32}$",
"type": "string"
},
"type": "array"
},
"w": {
"description": "Wallet builder code",
"pattern": "^[a-z0-9_]{1,32}$",
"type": "string"
}
},
"type": "object"
}
},
"offer-receipt": {
"info": {
"offers": [
{
"acceptIndex": 0,
"format": "eip712",
"payload": {
"amount": "10000",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"network": "eip155:8453",
"payTo": "0xE295B6641b32998537Ae0f8E61Babf729EAEd6E5",
"resourceUrl": "https://anomaly.forgemesh.io/api/mempool-anomaly",
"scheme": "exact",
"validUntil": 1789578937,
"version": 1
},
"signature": "0x630f9e88af8867f500b7ad353e7d0c098ce3a07bb3f6238d45df0935b6dec04f3d99522ac2f6ea7bdcf964b6455a7a2eff0c4a3032cd21e5bfb9e1c619d700c61b"
}
]
},
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"offers": {
"items": {
"properties": {
"acceptIndex": {
"type": "integer"
},
"format": {
"type": "string"
},
"payload": {
"properties": {
"amount": {
"type": "string"
},
"asset": {
"type": "string"
},
"network": {
"type": "string"
},
"payTo": {
"type": "string"
},
"resourceUrl": {
"type": "string"
},
"scheme": {
"type": "string"
},
"validUntil": {
"type": "integer"
},
"version": {
"type": "integer"
}
},
"required": [
"version",
"resourceUrl",
"scheme",
"network",
"asset",
"payTo",
"amount"
],
"type": "object"
},
"signature": {
"type": "string"
}
},
"required": [
"format",
"signature"
],
"type": "object"
},
"type": "array"
}
},
"required": [
"offers"
],
"type": "object"
}
},
"payment-identifier": {
"info": {
"required": false
},
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"id": {
"maxLength": 128,
"minLength": 16,
"pattern": "^[a-zA-Z0-9_-]+$",
"type": "string"
},
"required": {
"type": "boolean"
}
},
"required": [
"required"
],
"type": "object"
}
}
}Use it
curl
curl "https://anomaly.forgemesh.io/api/mempool-anomaly" # -> 402 Payment Required, accepts[] lists how to pay # retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://anomaly.forgemesh.io/api/mempool-anomaly");
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}Python
import httpx
res = httpx.get("https://anomaly.forgemesh.io/api/mempool-anomaly")
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerMachine-readable
Everything on this page is also available as clean JSON at /resources/6440.json, and this resource appears in /discovery/resources and /discovery/search.