I understand that using json-rpc to listen for all transactions is a bad idea due to performance, but bitcoinj is able to do it. In reality bitcoind is parsing all transactions under the hood when it forwards them. Is there any way for bitcoind to notify me when it sees a new transaction (not paying to an address in the wallet)?

Surely its is able to notify other peers, so why not me?

One solution I am thinking of is running connecting a bitcoinj node to my bitcoind and then using that to listen to transactions.

Another solution is to just listen for blocks and lose the ability to see zero conf payments.

2 Answers 2


Yes by default newer versions of bitcoin core should have zeromq enabled by default. Check here -> https://github.com/bitcoin/bitcoin/blob/master/doc/zmq.md

If you're using java you can use the code snippet there (using https://github.com/zeromq/jeromq ) -> How do i parse the zeroMQ messages in java?


Yes, You could use walletnotify in your bitcoin.conf file.

This option will execute command when you receive a transaction.

for example in your bitcoin.conf

walletnotify= curl

Please make sure that you've curl installed.

  • Address is not paying to my wallet. I can add the address but there must be a limit to how many i can add
    – Jus12
    Commented Nov 30, 2017 at 10:09
  • Listening to mempool unconfirmed transaction won't harm your server performance if you are using this server for other purposes you can get another server for these jobs.
    – Tailer
    Commented Nov 30, 2017 at 10:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.