Raw-Transaction

無法廣播原始交易

  • December 22, 2017

我是一個真正的初學者,在簽署這個 P2sh 程式碼時遇到了麻煩:

020000000190001f2feb1d5f282f7e15f75259db6200bbdde6498442c7ae571ce4e9f595bd010000006a47304402205f49f55952d189148d570f23e6eb623b65631bdbf88a894c4f314d51a518c65602201bd88c35ebbe52b5dd00c482f4f47211436fe40447c230ebb22ee07f3437a5af0121031a4aa9b7fb5f97d7a6443d72e5420cebd50b2b6986abf3fd5be54e597ee334ddfeffffff026edae88c3c0000001976a9140115aef14ab7459df7e8892bcbfaf4d03501e9fa88ac6bf50904000000001976a914c1d3b9ab95f4a100f8b0e8daa11c01bbe4179ecb88ac1b211300
{
 "txid": "ae3ebf9b4216b2669fca8dc9091903b242cccb345f44883633ba7d7377347995",
 "hash": "ae3ebf9b4216b2669fca8dc9091903b242cccb345f44883633ba7d7377347995",
 "version": 2,
 "size": 225,
 "vsize": 225,
 "locktime": 1253659,
 "vin": [
   {
     "txid": "bd95f5e9e41c57aec7428449e6ddbb0062db5952f7157e2f285f1deb2f1f0090",
     "vout": 1,
     "scriptSig": {
       "asm": "304402205f49f55952d189148d570f23e6eb623b65631bdbf88a894c4f314d51a518c65602201bd88c35ebbe52b5dd00c482f4f47211436fe40447c230ebb22ee07f3437a5af[ALL] 031a4aa9b7fb5f97d7a6443d72e5420cebd50b2b6986abf3fd5be54e597ee334dd",
       "hex": "47304402205f49f55952d189148d570f23e6eb623b65631bdbf88a894c4f314d51a518c65602201bd88c35ebbe52b5dd00c482f4f47211436fe40447c230ebb22ee07f3437a5af0121031a4aa9b7fb5f97d7a6443d72e5420cebd50b2b6986abf3fd5be54e597ee334dd"
     },
     "sequence": 4294967294
   }
 ],
 "vout": [
   {
     "value": 2600.62108270,
     "n": 0,
     "scriptPubKey": {
       "asm": "OP_DUP OP_HASH160 0115aef14ab7459df7e8892bcbfaf4d03501e9fa OP_EQUALVERIFY OP_CHECKSIG",
       "hex": "76a9140115aef14ab7459df7e8892bcbfaf4d03501e9fa88ac",
       "reqSigs": 1,
       "type": "pubkeyhash",
       "addresses": [
         "16jenAh8U7g3epf7YU1Mmmxf1uieymWp7"
       ]
     }
   }, 
   {
     "value": 0.67761515,
     "n": 1,
     "scriptPubKey": {
       "asm": "OP_DUP OP_HASH160 c1d3b9ab95f4a100f8b0e8daa11c01bbe4179ecb OP_EQUALVERIFY OP_CHECKSIG",
       "hex": "76a914c1d3b9ab95f4a100f8b0e8daa11c01bbe4179ecb88ac",
       "reqSigs": 1,
       "type": "pubkeyhash",
       "addresses": [
         "1Jfs3xHhPBeRThAo9kcsXiGnAVwHpa1tiA"
       ]
     }
   }
 ]
}

我可以使用 creatrawtransaction 和 signrawtransaction 將其設置為“true”——但是當我嘗試將 rawtransaction 發送到網路時它仍然缺少輸入。

有什麼建議嗎?問題似乎出在見證腳本中,我不知道如何解決它。

您似乎正在使用主要的比特幣網路,但您所花費的交易在主網上不存在。它只存在於測試網路上。您需要在 testnet 模式下重新啟動節點才能使其正常工作。

引用自:https://bitcoin.stackexchange.com/questions/66219