I want to show block confirmations of the user's ether transaction to my account. How do I put watch on the incoming transactions?? I would need the transaction Id to know calculate block confirmations. But I can't view the incoming ether transaction for my account. Any way out?? Thanks.
-
1This is very good question– Pavel NiedobaOct 22, 2017 at 22:40
2 Answers
If you're using web3j/web3js, you can do it programmatically. I use web3j and I have this in my code:
web3j.transactionObservable().subscribe( tx -> {
if( credentials.getAddress().equals( tx.getTo() )) {
Logger.info( "This is my money! -> addr: {}, amt: {}",
credentials.getAddress(), tx.getValue() );
}
});
-
This ignores incoming transactions sent as part of a smart contract function invocation. Feb 10, 2018 at 2:14
Go to https://etherscan.io put in the address you want to monitor.
"in" (green) indicates deposits.
"out" (orange) indicates withdrawals.
-
This is a centralized solution. Are there any decentralized solutions? Feb 10, 2018 at 2:14