RPC: Populate a PSBT input with a UTXO not in wallet/mempool/utxo set #30873

issue instagibbs openend this issue on September 11, 2024
  1. instagibbs commented at 6:40 pm on September 11, 2024: member

    Please describe the feature you’d like to see added.

    If a user wants to make a chain of two transactions and sign the child without being able to get the parent in their mempool, I do not believe there is a way for this to be done natively in the PSBT RPCs. As the UTXO is not in the mempool/wallet/utxo set, it cannot be found for signing/finalization, unless injected manually.

    Note that this functionality seems to exist in the raw transaction path via the “prevtx” argument for signing, via: bitcoin-cli signrawtransactionwithwallet <tx_hex> ‘[{“txid”: “<txid_hex>”, “vout”: 0, “scriptPubKey”: “<spk_hex>”, “amount”: “”}]’

    No response

    Describe the solution you’d like

    One thought is an additional optional argument for utxoupdatepsbt to inject a UTXO from (an array of) serialized previous transactions. The PSBT Input’s prevout can be found in that list, and the PSBT Input populated with the requisite UTXO.

    Describe any alternatives you’ve considered

    No response

    Please leave any additional context

    No response

  2. instagibbs added the label Feature on Sep 11, 2024
  3. instagibbs renamed this:
    Populate a PSBT input with a UTXO not in wallet/mempoo/utxo set
    RPC: Populate a PSBT input with a UTXO not in wallet/mempoo/utxo set
    on Sep 11, 2024
  4. instagibbs renamed this:
    RPC: Populate a PSBT input with a UTXO not in wallet/mempoo/utxo set
    RPC: Populate a PSBT input with a UTXO not in wallet/mempool/utxo set
    on Sep 11, 2024


instagibbs

Labels
Feature


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-23 12:12 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me