Mempool worker collects mining statistics from the mempool.space API, providing real-time Bitcoin network data including hashrate, difficulty, and block information.
After cloning the repository, move into its directory:
cdminingos-wrk-ext-mempool
2. Install Dependencies
Inside the miningos-wrk-ext-mempool directory, run the following command to install dependencies using npm:
npmci
3. Generate Configuration Files
Next, run the following script to scan the config/ directory, copy each .example file into an active configuration file by removing the .example suffix.
shsetup-config.sh
4. Configure the Worker
After generating the configuration files, edit the files in the config/ directory to match your environment:
common.json - Worker-wide settings including worker identity
This worker connects to the public mempool.space API and does not require device-specific configuration.
5. Enable Debugging and Start the Worker
You can now start the worker by running the following command: