New to Claude Skills? Learn how to install them →

jeremylongshore on GitHub

Analyzing Mempool

Free

Monitor Ethereum mempool for transactions and gas analysis.

Get this skill

Free · Opens the source repo

What Analyzing Mempool does

The Analyzing Mempool skill provides tools for monitoring the Ethereum mempool, allowing users to analyze pending transactions, gas prices, and potential MEV (Miner Extractable Value) opportunities. This skill is particularly useful for traders, MEV researchers, and protocol developers who need to stay informed about transaction dynamics on the Ethereum blockchain. It leverages Python scripts to interact with the mempool and extract valuable insights, helping users make informed decisions based on real-time data.

To use the skill, users must have Python 3.8 or higher installed, along with the requests library for making RPC calls to the Ethereum network. After setting up the Ethereum RPC URL, users can execute various commands to view pending transactions, analyze gas prices, detect DEX swaps, and scan for MEV opportunities. The skill is designed to be straightforward, with clear instructions on how to navigate the scripts and interpret the results.

The output from the skill includes detailed information about pending transactions, gas price distributions, detected DEX swaps, and MEV opportunity analyses. Users can customize their queries with command-line flags, allowing for tailored results that meet specific needs. Additionally, the skill provides JSON output for programmatic use, making it easier to integrate the data into other applications or workflows.

Overall, the Analyzing Mempool skill is a powerful resource for anyone looking to deepen their understanding of Ethereum transaction mechanics and optimize their trading strategies based on real-time mempool data.

When to use it

Use this skill when you need to analyze pending transactions, optimize gas prices, or research MEV opportunities on the Ethereum blockchain.

When not to use it

This skill may not be suitable for users looking for automated trading solutions or those without a technical background in Python and blockchain interactions.

What you can build with it

Check Gas Prices Before Transactions

Use the skill to analyze current gas prices to determine the best time to send your transactions.

Monitor Large Pending Swaps

Set up the skill to track significant pending swaps in the mempool, allowing for strategic trading decisions.

Research MEV Opportunities

Utilize the MEV scanning feature to identify potential opportunities for profit based on pending transactions.

How to install Analyzing Mempool

View source

1. Install with the skills CLI

npx skills add jeremylongshore/claude-code-plugins-plus-skills/analyzing-mempool --agent claude-code

2. Or install it manually

Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.

Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs

Inside SKILL.md

Written by jeremylongshore

Analyzing Mempool

Contents

Overview | Prerequisites | Instructions | Output | Error Handling | Examples | Resources

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

  1. Install Python 3.8+ with requests library
  2. Configure Ethereum RPC URL (default: public endpoint, or set ETH_RPC_URL)
  3. Verify internet access for RPC calls

Instructions

Step 1: Navigate to Scripts Directory

cd ${CLAUDE_SKILL_DIR}/scripts

Step 2: Choose a Command

  1. View pending transactions: python mempool_analyzer.py pending
  2. Analyze gas prices: python mempool_analyzer.py gas
  3. Detect pending DEX swaps: python mempool_analyzer.py swaps
  4. Scan MEV opportunities: python mempool_analyzer.py mev
  5. Get mempool summary: python mempool_analyzer.py summary
  6. Watch specific contract: python mempool_analyzer.py watch 0x7a250d...

Alternatively, customize with flags:

python mempool_analyzer.py pending --limit 100    # Limit results
python mempool_analyzer.py --chain polygon gas     # Use different chain
python mempool_analyzer.py --chain arbitrum pending # Or use Arbitrum

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
  • Instant (90th percentile): Next block likely

MEV Warnings:

  • MEV detection is for educational purposes
  • Real MEV extraction requires specialized infrastructure
  • Use this for research and understanding mempool dynamics

Output

  • Pending transaction lists with gas prices and types
  • Gas price distribution and recommendations
  • Detected DEX swaps with amounts and DEX identification
  • MEV opportunity analysis with estimated profits
  • JSON output for programmatic use (--format json)

Error Handling

See ${CLAUDE_SKILL_DIR}/references/errors.md for:

  • RPC connection issues and timeout recovery
  • Mempool access limitations per chain
  • Transaction decoding errors and fallbacks
  • Gas analysis edge cases

Examples

Example 1: Check gas before sending transaction:

python mempool_analyzer.py gas
# Use "Fast" for quick confirmation

Example 2: Monitor for large pending swaps:

python mempool_analyzer.py swaps --limit 200  # 200: max results to scan

Example 3: Research MEV opportunities:

python mempool_analyzer.py mev -v

See ${CLAUDE_SKILL_DIR}/references/examples.md for more usage patterns.

Resources

  • ${CLAUDE_SKILL_DIR}/references/implementation.md - Gas analysis, MEV detection, multi-chain details
  • Ethereum JSON-RPC - RPC specification
  • Flashbots - MEV research and infrastructure
  • DEX Subgraphs - Pool and swap data
  • Supports: Ethereum, Polygon, Arbitrum, Optimism, Base

Frequently asked questions about Analyzing Mempool

Similar skills