Raw-Transaction
“無法找到所有 tx 輸入”
我使用“bitcoinjs-lib”創建了一個交易。
這是雜湊:
01000000013f3e32e0b436f37d6c67265dd0cb71053fe6b6f9cee12efbe52065071215d37b000000006a47304402203dc1f1d173ac8eaa059ef6f703793d16c98a33f1d6e2b6b83b894517041fdc08022065e57c6ad4c3f371348334b6aa27188ce4719f6278dc18003f60d4081b423c2401210273abe13a1fefd8663f7deeb4e755ad8753481fc6204b24e244835207edcbb760ffffffff02e8030000000000001976a91414c50581bac21c1fa611f906db135736d87e4c5088ac54820100000000001976a91463978c3bc763ceb4981d6992224d4b0c2892652888ac00000000
這是此雜湊的值。
{ "lock_time":0, "size":225, "inputs":[ { "prev_out":{ "index":0, "hash":"7bd31512076520e5fb2ee1cef9b6e63f0571cbd05d26676c7df336b4e0323e3f" }, "script":"47304402203dc1f1d173ac8eaa059ef6f703793d16c98a33f1d6e2b6b83b894517041fdc08022065e57c6ad4c3f371348334b6aa27188ce4719f6278dc18003f60d4081b423c2401210273abe13a1fefd8663f7deeb4e755ad8753481fc6204b24e244835207edcbb760" } ], "version":1, "vin_sz":1, "hash":"a85b07d647f728986687933f30db758b545144b34e9110d78355b2c11efc8423", "vout_sz":2, "out":[ { "script_string":"OP_DUP OP_HASH160 14c50581bac21c1fa611f906db135736d87e4c50 OP_EQUALVERIFY OP_CHECKSIG", "address":"12tpY8cF2bfTUzTQSZjwhRZ2k33RGNKzpg", "value":1000, "script":"76a91414c50581bac21c1fa611f906db135736d87e4c5088ac" }, { "script_string":"OP_DUP OP_HASH160 63978c3bc763ceb4981d6992224d4b0c28926528 OP_EQUALVERIFY OP_CHECKSIG", "address":"1A5bSiXqBBt4rSani8UHaAV4314pU8poN9", "value":98900, "script":"76a91463978c3bc763ceb4981d6992224d4b0c2892652888ac" } ] }
區塊鏈給出了錯誤
"Unable to find all tx inputs"
。為什麼會這樣(以及如何解決)?
如果我沒看錯,您的輸入交易是
7bd31512076520e5fb2ee1cef9b6e63f0571cbd05d26676c7df336b4e0323e3f
. 在 blockchain.info 上搜尋未找到此交易。我猜以下其中一項是正確的:
- 交易ID不正確
- 交易從未廣播過
- 交易被廣播了,但從未得到確認,而且時間已經過去了,blockchain.info 停止跟踪它。
因此,請檢查 id 是否正確,如果正確,請嘗試(重新)廣播交易。