bitcoin core – Easy methods to declare funds in a multisig handle from a cash pool psbt?

0
11


Largely adopted this information on find out how to create a psbt the place a number of customers pool cash collectively. The whole lot is completed in regtest.
The gist of what I did is as follows:

  1. Created 2 totally different descriptor wallets (Identical machine, however totally different seeds), generated some funds into every pockets, and used createmultisig utilizing public keys from the two wallets. createmultisig 2 (pubkey1, pubkey2) address_type=bech_32
  2. created psbt utilizing createpsbt(inputs, outputs)
  3. ran walletprocesspsbt on every pockets with applicable hexstrings
  4. ran finalizepsbt and sendrawtransaction with applicable hexstrings
  5. created a brand new clean pockets as such createwallet wallet_name="wallet_multisig" disable_private_keys=true clean=true
  6. ran importdescriptors on the descriptor created from above createmultisig command. Success
  7. Can view steadiness in wallet_multisig with listunspent, however since no keys, cannot ship that steadiness. So I am at a loss on what to do or if I used mistaken instructions so I can spend that steadiness after importing the multisig handle into a brand new pockets.

As acknowledged beforehand, after finalizing the psbt and importing the descriptor (from createmultisig command) right into a clean descriptor pockets, I can view the steadiness utilizing listunspent, however I am unable to spend it.

one other chapter of the information spending funds despatched to a multisignature handle, the theoretical subsequent step is to create a transaction, then on every pockets signal utilizing signrawtransactionwithkey command with non-public key. On condition that I am utilizing descriptor wallets (not legacy), this is not an choice. Nor can I generate an handle for the reason that pockets has no keys.

Am I doing one thing mistaken in my earlier steps? If not, what steps transferring ahead can I do to have the ability to declare the cash within the multisig handle?

LEAVE A REPLY

Please enter your comment!
Please enter your name here