Index of every page on this site: llms.txt
All skills
Run it yourself

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".

Use this Skill: https://skilld.dev/gh/jeremylongshore/tons-of-skills-marketplace/analyzing-mempool

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencesexamples.md

≈937 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Usage Examples

View Pending Transactions

Basic View

python mempool_analyzer.py pending

Limit Results

python mempool_analyzer.py pending --limit 20

JSON Output

python mempool_analyzer.py pending --format json

Gas Price Analysis

Current Gas Prices

python mempool_analyzer.py gas

Gas Recommendations

python mempool_analyzer.py gas
# Output shows:
# - Current base fee
# - Gas price distribution (10th, 25th, 50th, 75th, 90th percentile)
# - Recommendations for slow, standard, fast, instant

JSON for Programmatic Use

python mempool_analyzer.py gas --format json

Pending DEX Swaps

View All Pending Swaps

python mempool_analyzer.py swaps

Analyze More Transactions

python mempool_analyzer.py swaps --limit 200

MEV Opportunity Scanning

Scan for Opportunities

python mempool_analyzer.py mev

Detailed Analysis

python mempool_analyzer.py mev --limit 300 -v

JSON Output

python mempool_analyzer.py mev --format json

Mempool Summary

Quick Overview

python mempool_analyzer.py summary

Watch Specific Contract

Monitor Uniswap Router

python mempool_analyzer.py watch 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D

Monitor Any Contract

python mempool_analyzer.py watch 0xYOUR_CONTRACT_ADDRESS --limit 200

Connection Status

Check RPC Connection

python mempool_analyzer.py status

Different Chains

Polygon

python mempool_analyzer.py --chain polygon pending
python mempool_analyzer.py --chain polygon gas

Arbitrum

python mempool_analyzer.py --chain arbitrum summary

Custom RPC URL

python mempool_analyzer.py --rpc-url https://your-rpc.example.com pending

Common Workflows

Pre-Transaction Gas Check

# Before sending a transaction, check optimal gas
python mempool_analyzer.py gas

# Use "Fast" recommendation for quick confirmation
# Use "Standard" for normal priority
# Use "Slow" if not time-sensitive

Monitor for Front-Running Risk

# Check if there are pending swaps that might affect your trade
python mempool_analyzer.py swaps

# High-value pending swaps = potential slippage

MEV Opportunity Research

# Educational: See what MEV opportunities exist
python mempool_analyzer.py mev -v

# Note: This is for research/education only
# Real MEV extraction requires specialized infrastructure

Programmatic Usage

from rpc_client import RPCClient
from gas_analyzer import GasAnalyzer
from mev_detector import MEVDetector

# Initialize
client = RPCClient()
gas_analyzer = GasAnalyzer()
mev_detector = MEVDetector()

# Get pending transactions
pending = client.get_pending_transactions(limit=100)

# Analyze gas
gas_info = client.get_gas_price()
distribution = gas_analyzer.analyze_pending_gas(pending)

print(f"Median gas: {distribution.median_gwei:.1f} gwei")

# Detect swaps
swaps = mev_detector.detect_pending_swaps(pending)
print(f"Pending swaps: {len(swaps)}")

Integration with jq

Filter High Gas Transactions

python mempool_analyzer.py pending --format json | \
  jq '[.[] | select(.gas_price > 50000000000)]'

Count by Transaction Type

python mempool_analyzer.py swaps --format json | \
  jq 'group_by(.dex) | map({dex: .[0].dex, count: length})'

Export Gas Data

python mempool_analyzer.py gas --format json > gas_snapshot.json

Tons of Skills by Intent Solutions | jeremylongshore.com

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts2mo3 checks · Risk SAFE
  • Gen Agent Trust Hub2mo

    A legitimate blockchain utility for monitoring Ethereum-compatible mempools, analyzing gas prices, and researching MEV opportunities. The skill interacts with well-known RPC infrastructure and decodes transaction data into structured formats for analysis.

  • Socket2mo

    No alerts

  • Snyk2mo

    Risk: LOW · No issues

Signed by skilld at 820dfc8. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated last month
What it can do
Reads files Edits files Runs commands
version
1.33.0
author
Jeremy Longshore <jeremy@intentsolutions.io>
tags
[
  "crypto",
  "monitoring",
  "analyzing-mempool"
]
All 6 allowed tools
ReadWriteEditGrepGlobBash(python:*mempool*)
Other metadata
compatibility
Designed for Claude Code

README badge

README badge for jeremylongshore/tons-of-skills-marketplace/analyzing-mempool