<p>The Bitcoin Core <code>-walletnotify</code> should only run at most twice for a typical transaction:</p>

<ol>
<li><p>When the transaction enters the local node's <a href="https://bitcoin.org/en/developer-guide#memory-pool" rel="noreferrer">mempool</a></p></li>
<li><p>When a block arrives containing that transaction.</p></li>
</ol>

<p>I haven't tested this, but it looks like the code may also send a notify if the transaction is conflicted, if it is no longer confirmed after a reorg, or when it is confirmed by a different block after a reorg.</p>

<p>But that means you should only be notified until 1 confirmation, not 3 as you say in your question.</p>

<p>There is no setting that lets you choose when you get notified.  However, you can build this feature for yourself using a <code>-blocknotify</code> command that calls one of the RPCs, such as <a href="https://bitcoin.org/en/developer-reference#listtransactions" rel="noreferrer"><code>listtransactions</code></a>.  Then you can check the confirmations field for each transaction and trigger an action if it's greater than or equal to 6.</p>

<p>You can alternatively use the <a href="https://bitcoin.org/en/developer-reference#listsinceblock" rel="noreferrer"><code>listsinceblock</code> RPC</a> to list all transactions in the wallet that aren't part of the fifth most recently confirmed block or an earlier block.  (That is, transactions that don't yet have six confirmations.)</p>

CC BY-SA 3.0
2015-01-08T22:02:16.470Z
2015-01-08T22:08:39.727Z
2015-01-08T22:08:39.727Z
David A. Harding
<p>I've configured bitcoind -walletnotify to run php script when callback is triggered. It works fine, but only notify until 3 confirmations are received. My goal is to notify when 6 confirmations are received for that transaction. Is there a way to configure it to notify until 6 confirmations?</p>

<transactions><bitcoind><confirmations>
Bitcoind -walletnotify more than 6 confirmations?
fre2ak
# Bitcoind -walletnotify more than 6 confirmations?

(Asked by: username_0 on 2014-03-21)

I've configured bitcoind -walletnotify to run php script when callback is triggered. It works fine, but only notify until 3 confirmations are received. My goal is to notify when 6 confirmations are received for that transaction. Is there a way to configure it to notify until 6 confirmations?

**Tags:** transactions, bitcoind, confirmations


---

## 1 answers

### Answer by username_1 on 2015-01-08. Score: 7

The Bitcoin Core `-walletnotify` should only run at most twice for a typical transaction:

1. When the transaction enters the local node's [mempool](https://bitcoin.org/en/developer-guide#memory-pool)
2. When a block arrives containing that transaction.

I haven't tested this, but it looks like the code may also send a notify if the transaction is conflicted, if it is no longer confirmed after a reorg, or when it is confirmed by a different block after a reorg.

But that means you should only be notified until 1 confirmation, not 3 as you say in your question.

There is no setting that lets you choose when you get notified. However, you can build this feature for yourself using a `-blocknotify` command that calls one of the RPCs, such as [`listtransactions`](https://bitcoin.org/en/developer-reference#listtransactions). Then you can check the confirmations field for each transaction and trigger an action if it's greater than or equal to 6.

You can alternatively use the [`listsinceblock` RPC](https://bitcoin.org/en/developer-reference#listsinceblock) to list all transactions in the wallet that aren't part of the fifth most recently confirmed block or an earlier block. (That is, transactions that don't yet have six confirmations.)


---

