AnswerBun.com

How to configure bitcoind to wait for X confirmations to make the payment submitted

Bitcoin Asked by Valometrics.com on December 13, 2020

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?

One Answer

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"]"

Answered by darosior on December 13, 2020

Add your own answers!

Related Questions

Name of attack where you pay a high fee to block others

2  Asked on October 24, 2021 by m-johnson

 

Configure Bitcoin full node in my local LAN

1  Asked on October 24, 2021 by miltonc

 

missing transaction not received

2  Asked on October 24, 2021 by n-w

 

I received an email that says someone sent me bitcoin

2  Asked on October 24, 2021 by user107566

 

OP_LSHIFT & OP_RSHIFT purpose & functionality

1  Asked on October 24, 2021 by bhala-t-r

 

What is proof-of-work?

3  Asked on October 24, 2021 by dr-haribo

     

How do I get hash to verify transaction?

1  Asked on October 24, 2021 by kriley

     

Blockchain API whitelist all IP addresses

1  Asked on October 24, 2021 by samuel-ralak

     

Error on Centos Minergate Installation

0  Asked on October 24, 2021 by centosminer

   

bitcoin-cli “Could not connect to the server”

1  Asked on October 24, 2021 by user97315

 

Ask a Question

Get help from others!

© 2023 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP