Skip to content
Advertisement

Tag: bitcoinj

How can I get notified when money has been sent to a particular Bitcoin address on a local regtest network?

I want to programmatically detect whenever someone sends Bitcoin to some address. This happens on a local testnet which I start using this docker-compose.yml file. Once the local testnet runs, I create a new address using Let’s say it returns 2N23tWAFEtBtTgxNjBNmnwzsiPdLcNek181. I put this address into the following Java code: Then I start the Java application with this class. Then

Advertisement