fundrawtransaction - select input transaction with minimum confirmations #14542

issue g5501439 openend this issue on October 22, 2018
  1. g5501439 commented at 5:44 pm on October 22, 2018: none
    when using to fundrawtransaction, how to select input transaction with minimum confirmations option ? @jonasschnelli what’s default option for funded when select inputs ?
  2. fanquake added the label RPC/REST/ZMQ on Oct 22, 2018
  3. 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?

  4. 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

  5. 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.
  6. 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 ?
  7. sipa commented at 6:23 am on October 25, 2018: member
    I think it’s totally reasonable to add an option to fundrawtransaction and walletcreatefundedpsbt to restrict coin selection to outputs with at least a certain number of confirmations.
  8. ishaanam commented at 5:21 pm on June 8, 2022: contributor
    I’ve been working on adding a minconf option to fundrawtransaction and walletcreatefundedpsbt. I can open a PR for this if this is still something people would find useful?
  9. achow101 closed this on Jan 16, 2023

  10. 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 site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me