1
I can not decode transaction in Bitcoin-QT.
The error is: TX decode failed (code -22). But blockexplorer site decode it.
Then I try to send transaction from blockcypher.com site, and the error is:
Error validating transaction: Error running script for input 0 referencing c806c9ae2ac9c71fad307c9fedeca2133edb195cae9e924424885f57a63ba9a9 at 0: Script was NOT verified successfully..
Please help what is wrong. I check transaction structure by hand and check signatures. It's all ok.
I upload signed and unsigned transactions on pastebin.
Unsigned transaction: https://pastebin.com/XfE73U57
Decoded unsigned transaction: https://pastebin.com/RH2tNrNn
Signed transaction: https://pastebin.com/K15c29tK
Decoded signed transaction: https://pastebin.com/Mfs0bXgR
I check signatures and structure of transaction by hand, and they are all correct. Inputs are unspent. So what is the problem? Please help me.
when looking at https://www.blockchain.com/btc/tx/c806c9ae2ac9c71fad307c9fedeca2133edb195cae9e924424885f57a63ba9a9?show_adv=true, I can see that the transaction's input spent the funds already to other addresses. What do you get with listunspent?
– pebwindkraft – 2018-07-22T08:46:07.617pebwindkraft, I little bit confused about what are you asking for, because the 5 outputs of this transaction are "unspent" – chupacabra – 2018-07-22T10:52:10.617
I thought the error message indicates s.th. with the first transaction and it's input zero. Before going into further analysis of sig and scripts, I wanted to make sure, that this "outpoint 0" really contains funds. However, when I was looking at blockchain.info, I thought I can see, that the funds might have been sent already. So the output of "listunspent | grep -A9 -B1 $tx_id" would have helped to verify current status for the error message... If you like to, you can edit your original question and copy&paste output of the command, or use pastern again. – pebwindkraft – 2018-07-22T17:46:08.207
All inputs of my transaction are the unspend outputs from the one transaction
c806c9ae2ac9c71fad307c9fedeca2133edb195cae9e924424885f57a63ba9a9. The outputs of this transaction are unspend (5 outputs). I try to edit my question so to clearify the problem that I really misunderstand. – chupacabra – 2018-07-23T11:37:51.803@chupacabra something happened? similar error – Alex Muravyov – 2018-08-14T17:38:52.160