Post
Topic
Board Development & Technical Discussion
Re: Bitcoin Taproot transaction STEP BY STEP on bitcoin-cli...
by
cfbtcman
on 05/10/2023, 17:09:40 UTC
Use PSBT instead of raw transaction:

Firstly, import the necessary descriptor to the wallet if it's not available (command already provided).

Secondly, create a partially signed Bitcoin transaction:
Code:
createpsbt "[{\"txid\":\"<TXID>\",\"vout\":<N>}]" "[{\"<address1>\":<amount1>},{\"<address2>\":<amount2>}]"
Thirdly, process the psbt (update, sign):
Code:
walletprocesspsbt "<PSBT from above command>"
Fourthly, finalize it:
Code:
finalizepsbt "<processed PSBT from above command>"
Lastly, send it to mempool:
Code:
sendrawtransaction "<signed raw transaction from above command>"

Hi, thanks for the answer, I have also tested without success, seems the wallet can't sign.

I read that is only supported in last core version 25 and for moments I can't try it because I only have 23 and is a testing node that I don't control.

Have you tested it with success on what core version?