Node.js Web3.js>>w3.eth.sendSignedTransaction txn已提交但未成功
说明:: 我有一个签名的txn,当我使用w3.eth.sendSignedTransaction提交它时,我在Geth日志文件中看到以下日志 Geth日志如下所示:Node.js Web3.js>>w3.eth.sendSignedTransaction txn已提交但未成功,node.js,blockchain,ethereum,web3js,Node.js,Blockchain,Ethereum,Web3js,说明:: 我有一个签名的txn,当我使用w3.eth.sendSignedTransaction提交它时,我在Geth日志文件中看到以下日志 Geth日志如下所示: INFO [05-24|12:01:44] Submitted transaction fullhash=0xd6ad180c709ce93f5884070f28488925e9b944a24fc6ab737c79d8e66dfd9dca recipient=0xF06c0a4A9fafddA7
INFO [05-24|12:01:44] Submitted transaction fullhash=0xd6ad180c709ce93f5884070f28488925e9b944a24fc6ab737c79d8e66dfd9dca recipient=0xF06c0a4A9fafddA7b8B25F986e1C0dfEC62e1E84
我获得了如上所示的txn散列,但现在当我尝试使用散列搜索我的txn时,以下是我得到的>>
我的问题是::为什么块哈希>>0x0000
这里可能出了什么问题
用于发送此txn的代码如下>>
w3.eth.sendSignedTransaction( data ).once( 'transactionHash', (hash) => {
console.log(hash)
}).on('receipt', (receipt) => {
console.log('receipt');
}).on('confirmation', (confirmationNumber, receipt) => {
console.log('confirmation');
}).on('error', (err) => {
console.log(err);
}).then( (receipt) => {
console.log('finally got the receipt!');
})
.catch(e => {
console.log('err');
})
我也有同样的问题
当我们的nonce不高于帐户中的交易计数时,就会出现此问题。
检查以下等式在您的情况下是否正确>>
NONCE = count_of_transactions_from_account + 1
希望有帮助 看起来交易还没有被挖掘出来。您是否获得接收/确认调试输出并在调试后检查块散列?