when using to fundrawtransaction, how to select input transaction with minimum confirmations option ? @jonasschnelli what's default option for funded when select inputs ?
fundrawtransaction - select input transaction with minimum confirmations #14542
issue g5501439 opened this issue on October 22, 2018-
g5501439 commented at 5:44 PM on October 22, 2018: none
- fanquake added the label RPC/REST/ZMQ on Oct 22, 2018
-
promag commented at 4:11 PM on October 24, 2018: member
I don't understand the 2nd question.
As for the 1st, that is not possible. Why would you want to do that?
-
onesandzer0es commented at 9:40 PM on October 24, 2018: none
If the fundrawtransaction method selects input (1 confirmation tx), and what happens if the non-valid chain breaks ?
I guess with the createrawtransaction method, 6 confirmations txs can be selected, why can't this selection be made with the fundrawtransaction method ? @promag
-
promag commented at 10:30 PM on October 24, 2018: member
It's not that simple, the coin selection algorithm takes into account several aspects, especially if an input is a transaction created by the wallet and the corresponding depth. AFAIK you can't override the minimum input depth.
-
onesandzer0es commented at 5:56 AM on October 25, 2018: none
So, in the coin selection algorithm, only the coin amount of UTXO are paid attention ? Is algorithm also taken care of the number of confirmations that received ?
-
sipa commented at 6:23 AM on October 25, 2018: member
I think it's totally reasonable to add an option to
fundrawtransactionandwalletcreatefundedpsbtto restrict coin selection to outputs with at least a certain number of confirmations. -
ishaanam commented at 5:21 PM on June 8, 2022: contributor
I've been working on adding a minconf option to
fundrawtransactionandwalletcreatefundedpsbt. I can open a PR for this if this is still something people would find useful? - achow101 closed this on Jan 16, 2023
- bitcoin locked this on Jan 16, 2024