Skip to content

Latest commit

 

History

History
86 lines (59 loc) · 2.57 KB

script-inscriptionmempool.md

File metadata and controls

86 lines (59 loc) · 2.57 KB
panelgroup Bitcoin Panels
name Unmined Inscriptions Mempool
title Unmined Inscriptions Mempool Script
layout default
description Shows thumbnail representations of the most recently added inscriptions to the mempool which are not yet mined.
imageurl ../images/inscriptionmempool.png

Unmined Inscriptions in Mempool

This script analyzes the mempool of a bitcoin node, finds transactions with inscriptions and extracts them. A summary image of the most recent inscriptions will be generated as the output file.

It depends on a bitcoin node.

  • For more information about Ordinals, checkout the Ordinals Website.
  • For more information about Inscriptions, checkout the Inscriptions section.
  • For more technical explanation of OP codes used by this script for parsing out the Ordinal Inscriptions, see the Script Wiki Page

sample inscription mempool

Script Location

This script is installed at ~/nodeyez/scripts/inscriptionmempool.py

Configuration

To manage and configure this script, use the nodeyez-config tool

sudo nodeyez-config

To manually configure this script, edit the ~/nodeyez/config/inscriptionmempool.json file

Fields are defined below

field name description
backgroundColor The background color of the image expressed as a hexadecimal color specifier. Default #000000
height The height, in pixels, to generate the image. Default 320
interval The amount of time, in seconds, the script should wait before data gathering and image creation again. Default 10
textColor The color to use for the header expressed as a hexadecimal color specifier. Default #ffffff
width The width, in pixels, to generate the image. Default 480

Run Directly

Ensure the virtual environment is activated

source ~/.pyenv/nodeyez/bin/activate

Change to the scripts folder

cd ~/nodeyez/scripts

Run it

python inscriptionmempool.py

Press CTRL+C to stop the process

This script also supports optional command line arguments for a single run and exit.

  1. Pass the desired width and height as arguments as follows
python inscriptionmempool.py 1920 1080

Run at Startup

To enable the script to run at startup, as the privileged user run the following

sudo systemctl enable nodeyez-inscriptionmempool.service

sudo systemctl start nodeyez-inscriptionmempool.service

Home |