Skip to content
Skills Library
Finance & accounting · Analysis

analyzing-mempool

/analyzing-mempool

Monitor blockchain mempools for pending transactions, gas analysis, and MEV opportunities. Use when analyzing pending transactions, optimizing gas prices, or researching MEV. Trigger with phrases like "check mempool", "scan pending txs", "find MEV", "gas price analysis", or "pending swaps".

Licence
MIT
Last repository change
26.10.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
13
Scripts
6
HTML comments
0
URLs in SKILL.md
3
Deprecation

No signals detected. Repository changed on 26.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What to check before installing
  • 6 scripts in this package. Review them before installing, as Claude may execute them.

Scripts: scripts/formatters.py, scripts/gas_analyzer.py, scripts/mempool_analyzer.py, scripts/mev_detector.py, scripts/rpc_client.py, scripts/tx_decoder.py

What it does and when to use it

Monitor blockchain mempools for pending transactions, gas analysis, and MEV opportunities. Use when analyzing pending transactions, optimizing gas prices, or researching MEV. Trigger with phrases like "check mempool", "scan pending txs", "find MEV", "gas price analysis", or "pending swaps".

Triggers from the description

check mempoolscan pending txsfind MEVgas price analysispending swaps
Original author description

Monitor blockchain mempools for pending transactions, gas analysis, and MEV opportunities. Use when analyzing pending transactions, optimizing gas prices, or researching MEV. Trigger with phrases like "check mempool", "scan pending txs", "find MEV", "gas price analysis", or "pending swaps".

How it works

  1. Contents
  2. Overview
  3. Prerequisites
  4. Instructions
  5. Output
  6. Error Handling
  7. Examples
  8. Resources
Original SKILL.md headings · 104 lines, 394 words
SKILL.md preview
---
name: analyzing-mempool
description: 'Monitor blockchain mempools for pending transactions, gas analysis,
  and MEV opportunities.

  Use when analyzing pending transactions, optimizing gas prices, or researching MEV.

  Trigger with phrases like "check mempool", "scan pending txs", "find MEV", "gas
  price analysis", or "pending swaps".

  '
allowed-tools: Read, Write, Edit, Grep, Glob, Bash(python:*mempool*)
version: 1.33.0
author: Jeremy Longshore <jeremy@intentsolutions.io>
license: MIT
tags:
- crypto
- monitoring
- analyzing-mempool
compatibility: Designed for Claude Code
---
# Analyzing Mempool

## Contents

[Overview](#overview) | [Prerequisites](#prerequisites) | [Instructions](#instructions) | [Output](#output) | [Error Handling](#error-handling) | [Examples](#examples) | [Resources](#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

```bash
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:

```bash
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 [`references/errors.md`](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:**

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

**Example 2: Monitor for large pending swaps:**

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

**Example 3: Research MEV opportunities:**

```bash
python mempool_analyzer.py mev -v
```

See [`references/examples.md`](references/examples.md) for more usage patterns.

## Resources

- [`references/implementation.md`](references/implementation.md) - Gas analysis, MEV detection, multi-chain details
- [Ethereum JSON-RPC](https://ethereum.org/en/developers/docs/apis/json-rpc/) - RPC specification
- [Flashbots](https://flashbots.net) - MEV research and infrastructure
- [DEX Subgraphs](https://thegraph.com) - Pool and swap data
- Supports: Ethereum, Polygon, Arbitrum, Optimism, Base
Files in this package (13)
  • ARD.md 4 KB
  • PRD.md 3 KB
  • SKILL.md 4 KB
  • config/settings.yaml 1 KB
  • references/errors.md 3 KB
  • references/examples.md 4 KB
  • references/implementation.md 2 KB
  • scripts/formatters.py 7 KB
  • scripts/gas_analyzer.py 9 KB
  • scripts/mempool_analyzer.py 10 KB
  • scripts/mev_detector.py 12 KB
  • scripts/rpc_client.py 10 KB
  • scripts/tx_decoder.py 9 KB

Versions

RepositoryScoreLicence
This page · jeremylongshore/tons-of-skills-marketplace100MIT
HelixDevelopment/agent100MIT

Identical content appears in 1 other GitHub folders. We show one copy with the highest score.

Database snapshot: 13.11.2026 · package version f49cf0d655b5 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100optimizing-gas-fees
    Execute predict optimal gas prices and transaction timing to minimize blockchain transaction costs. Use when optimizing blockchain transaction costs. Trigger with phrases like "optimize gas", "check gas prices", or "minimize fees".
  • 100optimizing-gas-fees
    Optimize blockchain gas costs by analyzing prices, patterns, and timing. Use when checking gas prices, estimating costs, or finding optimal windows. Trigger with phrases like "gas prices", "optimize gas", "transaction cost", "when to transact".
  • 100routing-dex-trades
    Route trades across multiple DEXs to find optimal prices with minimal slippage and gas costs. Use when comparing DEX prices, finding optimal swap routes, analyzing price impact, splitting large orders, or assessing MEV risk. Trigger with phrases like "find best swap", "compare…
  • 95bitcoin-libraries-mempool-js
    mempool.js (@mempool/mempool.js): TypeScript client for mempool.space API. REST + WebSocket; address history, fee estimates, mining stats. USE WHEN: integrating mempool.space data, building wallets / explorers.
  • 95blockchain-core
    Use this skill when asked about blockchain fundamentals, consensus mechanisms, PoW, PoS, gas, staking, blockchain data structures, DAG consensus, Avalanche, MEV, PBS, economic security, blockchain node implementation. Languages: C++, Go. Covers core protocol engineering…
  • 95bitcoin-infrastructure-mempool-space
    mempool.space: open-source mempool explorer + accelerator. Detailed fee tracking, mempool blocks projection, REST + WebSocket APIs. Self-hostable. USE WHEN: integrating mempool.space API, deploying self-hosted variant, evaluating fee estimation services.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.