Esempio n. 1
0
 @Override
 public void onTransactionConfidenceChanged(Wallet wallet, Transaction tx) {
   System.out.println("-----> confidence changed: " + tx.getHashAsString());
   TransactionConfidence confidence = tx.getConfidence();
   System.out.println("new block depth: " + confidence.getDepthInBlocks());
 }
Esempio n. 2
0
 @Override
 public void onCoinsReceived(Wallet wallet, Transaction tx, Coin prevBalance, Coin newBalance) {
   System.out.println("-----> coins resceived: " + tx.getHashAsString());
   System.out.println("received: " + tx.getValue(wallet));
 }