Raw-Transaction

原始交易結構

  • December 29, 2017

我進行了兩次原始交易。一個由ethereumjs-tx生成,另一個由MyEtherWallet 生成。它們是相同的,直到大約最後七分之一通過。有沒有辦法找出導致差異的原因?

0xf9012a058504e3b2920083061a809427b277e71004fd629b4b5f23ce9cedde0df6fae980b8c4e3d2923153746576650000000000000000000000000000000000000000000000000000003334323533333435000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006823dd004334474d4146384438425775446532484800000000000000000000000000000057686f6c6520636f6d70616e7900000000000000000000000000000000000000307832393334303030613361366330323238336665316537396363623830303326a031e4a61cdbf1a802ba9176e35083ed0ed8593fd130e32f0f650919653177a516a0416d5c3d315e26e4db24226b0ab6927315150185404c133a5097fcf2a9aaa527

0xf9012a058504e3b2920083061a809427b277e71004fd629b4b5f23ce9cedde0df6fae980b8c4e3d2923153746576650000000000000000000000000000000000000000000000000000003334323533333435000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006823dd004334474d4146384438425775446532484800000000000000000000000000000057686f6c6520636f6d70616e790000000000000000000000000000000000000030783239333430303061336136633032323833666531653739636362383030331ca0beb2c5b5fa47345a4df29e02d1fb746b59357fa21b44a4766994731229cb107da02fd57c9e32d253ae86982dbcc66c30b5108d9b4ecb76eb84c92c55a3c889f5f8

您可能想嘗試使用ethereumjs-tx-sign庫中的“unsign()”函式來檢查每個原始交易值中包含的所有數據……並比較內容。

您可能會發現它歸結為修復了正確編碼生成原始交易時使用的所有輸入參數的疏忽。失去的“0x”可能會造成嚴重破壞。

另一個可能的原因(剛剛報告)是指定ethereumjs-txa 時生成的輸出可能存在問題。chainId待定..

引用自:https://ethereum.stackexchange.com/questions/21669