Post
Topic
Board Project Development
Merits 15 from 6 users
Topic OP
NodeWatcher - simple mempool watcher
by
PawGo
on 07/08/2022, 18:34:46 UTC
⭐ Merited by ETFbitcoin (4) ,BlackHatCoiner (4) ,dkbit98 (3) ,seoincorporation (2) ,khaled0111 (1) ,DdmrDdmr (1)
Hello

Having a free afternoon I have prepared a very simple mempool watcher, which uses RPC connection to (local) node, checks transactions and if there is any transaction with output to known address, it prepares a transaction which moves amount to destination address.
The idea was to have some "automatic" transfers when there is payment to given address(es). For example you have tool which generates addresses from seed (for your clients) and after payment you move funds to one single address. Currently it is really very simple app, maybe I will extend it in the future - for example retrieve private keys from seed (now it expects list of WIFs).
It connects to node using provided path (http://user:pass@host:port/) or patch to .cookie file (then connects to 127.0.0.1:8332).
If there is any interest in that kind of projects, I will add new features, for now it is as it is. It was more like an exercise for me, as I did not work with RPC /remote connection/ never before.

Sources and first release:
https://github.com/PawelGorny/NodeWatcher