Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 web3j 来查询以太坊区块链。现在我想检查一笔交易是被挖掘还是刚刚发送到网络。我怎样才能做到这一点?
您可以考虑使用web3.eth.getTransactionReceipt(hash [, callback]).
web3.eth.getTransactionReceipt(hash [, callback])
如果交易成功,它将返回null待处理的交易和一个对象。
null