I am using web3j to query the Ethereum blockchain. Now I want to check if a transaction was mined or just sent to the network. How can I achieve this?
You can consider using web3.eth.getTransactionReceipt(hash [, callback])
.
It will return null
for pending transactions and an object if the transaction is successful.