fundrawtransaction - select input transaction with minimum confirmations #14542
issue g5501439 openend this issue on October 22, 2018-
g5501439 commented at 5:44 pm on October 22, 2018: nonewhen using to fundrawtransaction, how to select input transaction with minimum confirmations option ? @jonasschnelli what’s default option for funded when select inputs ?
-
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: memberIt’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: noneSo, 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: memberI think it’s totally reasonable to add an option to
fundrawtransaction
andwalletcreatefundedpsbt
to restrict coin selection to outputs with at least a certain number of confirmations. -
ishaanam commented at 5:21 pm on June 8, 2022: contributorI’ve been working on adding a minconf option to
fundrawtransaction
andwalletcreatefundedpsbt
. 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
github-metadata-mirror
This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-11-22 00:12 UTC
This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-11-22 00:12 UTC
This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me
More mirrored repositories can be found on mirror.b10c.me