标签: transactions ethereum web3-java
我使用web3j查询以太坊区块链。现在我想检查交易是否已开采或仅发送到网络。 我怎样才能做到这一点?
答案 0 :(得分:2)
您可以考虑使用web3.eth.getTransactionReceipt(hash [, callback])。
web3.eth.getTransactionReceipt(hash [, callback])
如果交易成功,它将返回null挂起的交易和对象。
null