This is a simple proof of concept BTC address monitoring application. It should be provided with a watchlist of addresses. The application will then monitor transactions on the blockchain and watch for deposits into the addresses that are contained in the watch list.
{"addresses": ["n2unYMeXXpadkocVka1rPzGLpJ6PwLBgRy", "2N8jrpNnTzrYJMU4cLfmQudbRemyLyQKWnC"]}
The application requires a connection to bitcoind
. An example of starting bitcoind is as follows:
bitcoind -testnet -datadir=testnet -server -rpcuser=user -rpcpassword=pass -txindex=1
. This
will run bitcoind on 127.0.0.1 and port 18332.
To run the application execute python monitor.py user pass
where user
matches the -rpcuser
for the RPC
user of your bitcoind process and pass
matches the -rpcpassword
you set when starting bitcoind.