1
I need to receive bitcoins from the customers, and then add to theirs virtual account some credits. I use BitcoinJ wallet and I want to give each customer the unique Address created by
walletAppKit.wallet().freshReceiveAddress()
But when I receive coins I can't define customer who send me them.
walletAppKit.wallet().addCoinsReceivedEventListener((w, tx, prevBalance, newBalance) contains all information but I don't see any Address info to define customer.
Could you please explane isMine method? – Ran Novr – 2018-06-17T00:00:38.560
This method Returns true if this output is to a key, or an address we have the keys for, in the wallet, Reference: https://bitcoinj.github.io/javadoc/0.14/org/bitcoinj/core/TransactionOutput.html#isMine-org.bitcoinj.core.TransactionBag-
– Zombie – 2018-06-17T08:25:39.747