Skip to content

■ SKILLS // SKILL SPECS

mempool-analyzer

Advanced mempool analysis for MEV opportunities, pending transaction monitoring, and gas price optimization

■ [!] ON THIS PAGE ▼
■ INSTALL // npx @self.md/cli install mempool-analyzer
AuthorJeremy Longshore
Namespace@jeremylongshore/claude-code-plugins-plus
Category#general
Version1.0.0
Stars★ 1,193
Downloads↓ 2
Verification[ ✓ ] self.md verified

Advanced mempool analysis for MEV opportunities, pending transaction monitoring, and gas price optimization

Installation

npx claude-plugins install @jeremylongshore/claude-code-plugins-plus/mempool-analyzer

Contents

Folders: agents, skills

Files: LICENSE, README.md

Documentation

Advanced mempool analysis for MEV opportunities, pending transaction monitoring, and gas price optimization.

Features

  • Real-time mempool monitoring across Ethereum, BSC, Polygon, and Arbitrum
  • MEV opportunity detection including sandwich attacks, arbitrage, and liquidations
  • Gas price optimization with EIP-1559 base fee prediction
  • Transaction analysis with calldata decoding and simulation
  • Block builder monitoring to understand validator MEV extraction
  • Risk assessment for detected opportunities

Installation

/plugin install mempool-analyzer@claude-code-plugins-plus

Usage

The mempool agent automatically activates when you discuss:

  • Mempool analysis and pending transactions
  • MEV opportunities and extraction strategies
  • Gas price optimization
  • Front-running and sandwich attack detection
  • Large transaction monitoring

Example Queries

What MEV opportunities are currently in the mempool?

Show me all pending large ETH transfers over $1M

What's the optimal gas price for the next block?

Analyze pending Uniswap swaps for arbitrage opportunities

Monitor address 0x... for incoming mempool transactions

Configuration

Create a .mempool-config.json file:

{
  "networks": ["ethereum", "bsc", "polygon", "arbitrum"],
  "rpcEndpoints": {
    "ethereum": "wss://eth-mainnet.g.alchemy.com/v2/YOUR_KEY"
  },
  "mevDetection": {
    "minProfitUSD": 100,
    "maxGasPrice": 200,
    "sandwichDetection": true,
    "arbitrageDetection": true,
    "liquidationMonitoring": true
  },
  "alerts": {
    "largeTransferThreshold": 1000000,
    "highGasWarning": 150,
    "mevOpportunityFound": true
  }
}

Data Sources

  • Flashbots Protect RPC
  • Blocknative Mempool Explorer
  • Eden Network
  • MEV-Blocker
  • Public RPC nodes
  • Block explorer APIs

Risk Warnings

️ Important Considerations:

  • MEV extraction is highly competitive with sophisticated bots
  • Gas wars can eliminate profits quickly
  • Smart contract interactions carry inherent risks
  • Some MEV strategies have regulatory implications
  • This tool is for educational and defensive purposes

License

MIT License - See LICENSE file for details

Support


Built with ️ for blockchain researchers by Intent Solutions IO

Included Skills

This plugin includes 1 skill definition:

analyzing-mempool

|

View skill definition

Analyzing Mempool

Overview

Monitor Ethereum mempool for pending transactions, analyze gas prices, detect DEX swaps, and identify potential MEV opportunities. Useful for traders, MEV researchers, and protocol developers.

Prerequisites

Before using this skill, ensure you have:

  • Python 3.8+ with requests library
  • Ethereum RPC URL (default: public endpoint, or set ETH_RPC_URL)
  • Internet access for RPC calls

Instructions

Step 1: Navigate to Scripts Directory

cd {baseDir}/scripts

Step 2: Choose Your Command

View Pending Transactions:

python mempool_analyzer.py pending
python mempool_analyzer.py pending --limit 100

Gas Price Analysis:

python mempool_analyzer.py gas
# Shows distribution, recommendations for slow/standard/fast/instant

Pending DEX Swaps:

python mempool_analyzer.py swaps
# Detects Uniswap, SushiSwap, 1inch pending swaps

MEV Opportunity Scan:

python mempool_analyzer.py mev
# Detects sandwich, arbitrage, liquidation opportunities

Mempool Summary:

python mempool_analyzer.py summary
# Quick overview of pending count, gas, opportunities

Watch Specific Contract:

python mempool_analyzer.py watch 0x7a250d...
# Monitor pending transactions to specific contract

Step 3: Interpret Results

Gas Recommendations:

  • Slow (10th percentile): May take 10+ blocks
  • Standard (50th percentile): 2-5 blocks
  • Fast (75th percentile): 1-2 blocks

Source

View on GitHub