Hi,

I am new to bitcoinJ library and looking to notify some listener when i get 
a particular transaction confirmed.Here is my code so far

receiverW.wallet.addCoinsReceivedEventListener(new 
WalletCoinsReceivedEventListener() {
    public void onCoinsReceived(Wallet wallet, Transaction tx, Coin coin, Coin 
coin1) {
        tx.getConfidence();
        System.out.println("-----> coins resceived: " + tx.getHashAsString());
        System.out.println("received: " + tx.getValue(wallet));
    }
});

However, when i ran the code, the above method got invoked when the transaction 
is placed in the block but not when it is confirmed.


What logic do i need to add for confirmation of the transaction?


thanks

-- 
You received this message because you are subscribed to the Google Groups 
"bitcoinj" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to