<p>Yes by default newer versions of bitcoin core should have zeromq enabled by default. Check here -> <a href="https://github.com/bitcoin/bitcoin/blob/master/doc/zmq.md" rel="nofollow noreferrer">https://github.com/bitcoin/bitcoin/blob/master/doc/zmq.md</a> </p>

<p>If you're using java you can use the code snippet there (using <a href="https://github.com/zeromq/jeromq" rel="nofollow noreferrer">https://github.com/zeromq/jeromq</a> ) -> <a href="https://bitcoin.stackexchange.com/questions/70063/how-do-i-parse-the-zeromq-messages-in-java/70132#70132">How do i parse the zeroMQ messages in java?</a></p>

CC BY-SA 3.0
2018-02-03T10:01:29.837Z
2018-02-03T10:01:29.837Z
dudious maximus
<p>Yes, You could use <code>walletnotify</code> in your <code>bitcoin.conf</code> file.</p>

<p>This option will execute command when you receive a transaction.</p>

<p>for example in your bitcoin.conf</p>

<pre><code>walletnotify= curl http://127.0.0.1/callback.php?transaction=%s
</code></pre>

<p><em>Please make sure that you've curl installed.</em></p>

CC BY-SA 3.0
2017-11-30T10:09:25.070Z
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
CC BY-SA 3.0
2017-11-30T10:21:39.210Z
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
CC BY-SA 3.0
2017-11-30T09:51:06.917Z
2017-11-30T09:51:06.917Z
Tailer
<p>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)?</p>

<p>Surely its is able to notify other peers, so why not me?</p>

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

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

<bitcoind><unconfirmed-transactions><bitcoinj>
Is there any way to listen to all transactions using bitcoind api?
Jus12
# Is there any way to listen to all transactions using bitcoind api?

(Asked by: username_0 on 2017-11-30)

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.

**Tags:** bitcoind, unconfirmed-transactions, bitcoinj


---

## 2 answers

### Answer by username_1 on 2018-02-03. Score: 1

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?](https://bitcoin.stackexchange.com/questions/70063/how-do-i-parse-the-zeromq-messages-in-java/70132#70132)


---

### Answer by username_2 on 2017-11-30. Score: 0

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 http://127.0.0.1/callback.php?transaction=%s

Please make sure that you've curl installed.

> **Comments:**
> **username_0**: Address is not paying to my wallet. I can add the address  but there must be a limit to how many i can add  
> **username_2**: 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.  

---

