Closed code4trade closed 5 months ago
Everything looks fine.
is the first output script of the tx at input_tx_id_hex
the same script as the output script you calculated?
Also, this bears repeating, do not use real bitcoins when testing out your wallet.
That is what testnet is for.
It seems to have been solved
I sent a transaction to a new taproot address (bc1p...) and when i send back the amount from this new address, i received the error
"Witness program was passed an empty witness"
from node.I'm using the simple keyspend example to sign and build the transaction. I think is something wrong with the vout and/or scriptPubkeys...
Here's the code: