<p>You could use the <code>listunspent</code> RPC command. It takes a parameter which allows you to filter out UTXOs which have less than <code>X</code> confirmations.</p>
<p>Example (from the manpage):</p>
<pre><code>bitcoin-cli listunspent 6 9999999 &quot;[\&quot;bc1INVALIDq09vm5lfy0j5reeulh4x5752q25uqqvz34hufd\&quot;,\&quot;bc1INVALIDq02ad21edsxd23d32dfgqqsz4vv4nmtfzuklhy3\&quot;]&quot;
</code></pre>

CC BY-SA 4.0
2020-12-08T20:30:53.967Z
2020-12-10T21:10:49.970Z
2020-12-10T21:10:49.970Z
Antoine Poinsot
<p>I'm using bitcoind for an ecommerce website. Walletnotify setting in bitcoin.conf only fires twice (once the payment appears on the network and then when the payment is confimed the first time by a block).</p>
<p>The issue is that i need to set the number of confirmations before the payment is submitted. Could you please give me some help on how to proceed?</p>

<bitcoind><confirmations><ecommerce>
How to configure bitcoind to wait for X confirmations to make the payment submitted
Valometrics.com
# How to configure bitcoind to wait for X confirmations to make the payment submitted

(Asked by: username_0 on 2020-12-08)

I'm using bitcoind for an ecommerce website. Walletnotify setting in bitcoin.conf only fires twice (once the payment appears on the network and then when the payment is confimed the first time by a block).

The issue is that i need to set the number of confirmations before the payment is submitted. Could you please give me some help on how to proceed?

**Tags:** bitcoind, confirmations, ecommerce


---

## 1 answers

### Answer by username_1 on 2020-12-08. Score: 2

You could use the `listunspent` RPC command. It takes a parameter which allows you to filter out UTXOs which have less than `X` confirmations.

Example (from the manpage):

```
bitcoin-cli listunspent 6 9999999 "[\"bc1INVALIDq09vm5lfy0j5reeulh4x5752q25uqqvz34hufd\",\"bc1INVALIDq02ad21edsxd23d32dfgqqsz4vv4nmtfzuklhy3\"]"

```


---

