{
  "x402Version": 2,
  "id": 32572,
  "slug": "32572",
  "resource": "https://anomaly.forgemesh.io/api/mempool-anomaly",
  "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.",
  "type": "http",
  "resourceType": "Market Data",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xE295B6641b32998537Ae0f8E61Babf729EAEd6E5",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 1800
    }
  ],
  "outputSchema": {
    "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"
  },
  "extensions": {
    "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": 1791438165,
              "version": 1
            },
            "signature": "0x12e7d56f61a91f1a36366cbde3e66b05adf8bedb059e454f15dcc428937c75fb4b93a96bdf10a33fb4f2545c0f8f0e2e56654f6329356501e0927323eeec8a9c1c"
          }
        ]
      },
      "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"
      }
    }
  },
  "tags": [
    "bazaar",
    "builder-code",
    "offer-receipt",
    "payment-identifier"
  ],
  "sourceHost": "anomaly.forgemesh.io",
  "lastUpdated": "2026-10-08T05:37:45.616Z",
  "quality": {
    "calls30d": 6,
    "uniquePayers30d": 3,
    "lastCalledAt": "2026-10-08T05:37:45.361Z"
  },
  "metadata": {
    "extensions": {
      "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": 1791438165,
                "version": 1
              },
              "signature": "0x12e7d56f61a91f1a36366cbde3e66b05adf8bedb059e454f15dcc428937c75fb4b93a96bdf10a33fb4f2545c0f8f0e2e56654f6329356501e0927323eeec8a9c1c"
            }
          ]
        },
        "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"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "anomaly.forgemesh.io",
    "manifest_name": "anomaly.forgemesh.io",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {
      "chain": "string",
      "gas": {},
      "novelty": "low",
      "peak_window": [
        "string"
      ],
      "pending_count": 0,
      "pending_stats": {},
      "sequence_score": 0,
      "story": "string"
    },
    "type": "string"
  }
}