Bitcoind

sendrawtransaction 的問題

  • June 9, 2015

當我使用 bitcoin-cli sendrawtransaction 並且只得到 -25 錯誤。我曾嘗試使用不同的區塊鏈瀏覽器站點推送交易,但沒有奏效。我努力了:

0100000001659d0ebe45e4446113776807a0160ab487a56f8386405e07d8d15275f18bb832010000006b483045022100e642093c9a56c76aeae91c68c19fd3f5f487d9d63c4f07259c5899a4df6f9bdf02203228b7f33a662fd5f3dc6fb3c361169392f91f74fe82ada1ce09bae55720ece70121029e033dda03e6cf9e0c93ac5b2689d047fd8e559ea0b5cfd1c86062387c672dcdffffffff0180d1f008000000001976a91476d2d121a1bbbc7e4c51f7a7c84437bb3aa1d66d88ac00000000

在 <https://live.blockcypher.com/btc-testnet/pushtx/> 它解碼良好,我收到消息“交易成功廣播”,但同時:

“沒有找到雜湊值為 7f1aa3a20163a9d4058940dd6af29b3f7aefc037b2f3b21133a1413a990bc4e7 的交易”

我可以使用 sendtoaddress 發送交易,這似乎是等效的。我從: <https://live.blockcypher.com/btc-testnet/tx/32b88bf17552d1d8075e4086836fa587b40a16a0076877136144e445be0e9d65/>開始 :

bitcoin-cli createrawtransaction ‘[{“txid”: “32b88bf17552d1d8075e4086836fa587b40a16a0076877136144e445be0e9d65”, “vout”: 1}]’’{“mrMEaWKfkJZcAN52VqNxKkF21uvf9HF9G.}’”

0100000001659D0EBE45E4446113776807A0160AB487A56F83864056F183864052A07D8D15275F18BB8320100000000FFFFFFFFFF0180D1F00800000000001976S1BBBC7E4C51F7A1BBBC7E4C51F7A7C84437BB3AAA1D66D88AC00000000

比特幣-CLI signrawtransaction 0100000001659d0ebe45e4446113776807a0160ab487a56f8386405e07d8d15275f18bb8320100000000ffffffff0180d1f008000000001976a91476d2d121a1bbbc7e4c51f7a7c84437bb3aa1d66d88ac00000000 {“十六進制”:“0100000001659d0ebe45e4446113776807a0160ab487a56f8386405e07d8d15275f18bb832010000006b483045022100c139f0601bcef52dca990a7a5ae73a6e30ce5f521e2be25e80376338c4d0a84a02201f691b9295c32660d023ff65e8b2793b563f29b66d0c704577785d353e2f66620121029e033dda03e6cf9e0c93ac5b2689d047fd8e559ea0b5cfd1c86062387c672dcdffffffff0180d1f008000000001976a91476d2d121a1bbbc7e4c51f7a7c84437bb3aa1d66d88ac00000000”,“完整”:真正}

它可以解碼,可以簽名,我有資金並且我以前發送過類似的交易,但現在似乎不可能。

您發布的交易的 tx 費用為 0.5 XTN:

Version:  1  tx hash 7f1aa3a20163a9d4058940dd6af29b3f7aefc037b2f3b21133a1413a990bc4e7  192 bytes   
TxIn count: 1; TxOut count: 1
Lock time: 0 (valid anytime)
Input:
  0: mjKj3fFKUBMfYiozTw4jngpuDQRjarn62F from 32b88bf17552d1d8075e4086836fa587b40a16a0076877136144e445be0e9d65:1      2000.00000 mBTC  sig ok
Output:
  0: mrMEaWKfkJZcAN52VqNxKkF21uvf9HF9G7 receives   1500.00000 mBTC
Total input    2000.00000 mBTC
Total output   1500.00000 mBTC
Total fees      500.00000 mBTC

這超過了比特幣核心0.1 XTN(或 BTC)的預設最大值。請嘗試將-maxtxfee=&lt;amt&gt;選項添加到 bitcoind 的命令行,如果您仍然遇到困難,請報告。

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