Skip to main content

Draw the Bitcoin Core mempool

Project description

Bitcoin Mempool Inspector

A tool to inspect and filter mempool transactions and their dependencies. This currently requires a locally running version of bitcoind and will use bitcoin-cli to pull data about the mempool and block template info.

Requirements

  • Bitcoin Core >= v0.17
  • Python 3.4, 3.5, 3.6
  • Matplotlib v2 dependencies
  • TK for Python

Install System Dependencies

sudo apt-get install python3-dev python3-tk
sudo apt-get build-dep python-matplotlib

If the build-dep command does not work, you may need to enable the deb-src repository

Installation Ubuntu & Debian

To Install With pip

pip3 install draw_mempool

To Install from Source

git clone https://github.com/conscott/draw_mempool
cd draw_mempool
python3 -v venv venv
source venv/bin/activate
python3 setup.py install

Try it out

./draw_mempool.py --help

Examples

# Only show transactions with ancestor dependencies within last 60 minutes with a fee-rate
# above 20 sat/byte
./draw_mempool.py --minancestors=2 --minfeerate=20 --maxage=60  

# Show high fee transactions (above 300 sat/byte)
./draw_mempool.py --minfeerate=300

# Animate live mempool, coloring tx's to be included in next block as blue
./draw_mempool.py --maxage=10 --animate --color_bt

# Color transactions signaling RBF
./draw_mempool.py --color_rbf 

# Draw the 2-block fee estimate as a horizontal line, as well as coloring 
# transactions to be included in the next block
./draw_mempool.py --nestimatefee=2 --color_bt

Events

  • Clicking on a tx will print the tx hash and fee / size information.
  • Double clicking on a transactions will open a browser tab, to inspect the tx on blockstream.info
  • Clicking the 'm' button will redraw the mempool without the txs included in getblocktemplate, to help visualize what the mempool would look like after the next block is mined (can help with fee estimates).
  • You can zoom and pan using the buttons provided in the lower menu.

Known Issues

  • This program gets quite slow when there is a large mempool and does best when there are less than 10,000 transactions to draw. You can use the tx filter functions (like --maxage) to reduce the total txs drawn.
  • When using --animate, the zoom will reset on every re-draw.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

draw_mempool-0.1.2.tar.gz (11.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

draw_mempool-0.1.2-py3-none-any.whl (11.5 kB view details)

Uploaded Python 3

File details

Details for the file draw_mempool-0.1.2.tar.gz.

File metadata

  • Download URL: draw_mempool-0.1.2.tar.gz
  • Upload date:
  • Size: 11.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3

File hashes

Hashes for draw_mempool-0.1.2.tar.gz
Algorithm Hash digest
SHA256 2fd18680ba0df3092c3e7b475c940d6d491a6f61c14d8875e762b619370567b6
MD5 c8b14b7dc2e9697b7b009f9fae031f82
BLAKE2b-256 b18ee5e229cb253eec094f3451b4af3071e7498d723b5c03c914f25501025b1d

See more details on using hashes here.

File details

Details for the file draw_mempool-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: draw_mempool-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 11.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3

File hashes

Hashes for draw_mempool-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0c97a55e290ac4a410835d6b4961e920edce8d180e0be0d6b79f53c2e62e8c30
MD5 e5a170e2f6c217923aaa7d2bb3cc5c93
BLAKE2b-256 bc2d1643d538ed4ecceca2f3b3bcf5ee5f69ffaf3f8fd64eea74930a4dc4c767

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page