Re: Transaction Fee - getInputSum() / getFee()

2017-07-10 Thread Wladimir Filho
So this is a limitation of Bitcoinj, I can solve this by abandoning this dependency and using instead the bitcoin core project itself, correct? On Monday, 10 July 2017 17:30:17 UTC-3, Andreas Schildbach wrote: > > It's a limitation of the Bitcoin protocol, inputs do not have value it's > their

Re: Transaction Fee - getInputSum() / getFee()

2017-07-10 Thread Andreas Schildbach
It's a limitation of the Bitcoin protocol, inputs do not have value it's their connected output. In bitcoinj, only the Wallet class connects the inputs to their outputs; since you probably don't use the Wallet you likely need to do the connecting yourself. On 07/06/2017 05:54 PM, Wladimir Filho

Re: Filtering out watched txs

2017-07-10 Thread Andreas Schildbach
There is currently no way to have bitcoinj filter the list of transactions, you'll have to do that yourself ATM. We always envisioned having a second, more usecase-oriented list of "payments". This would then represent the list shown to the user. Lightning payments could be visible there too in

Re: bitcoinj 0.14.4 : Send coin - get callback in receiveCoin too

2017-07-10 Thread Andreas Schildbach
What you probably see is the received change from your transaction. You could try creating a transaction without change and see if there is an onCoinsReceived event too. Also, as always, study the logfile. On 07/10/2017 04:51 PM, Kunal Ransing wrote: > Hi > > When I send coins I got callback

bitcoinj 0.14.4 : Send coin - get callback in receiveCoin too

2017-07-10 Thread Kunal Ransing
Hi When I send coins I got callback in broadcastComplete as well as onCoinsReceived. I added receive listner as below: // We want to know when we receive money. kit.wallet().*addCoinsReceivedEventListener*(new *WalletCoinsReceivedEventListener*() { @Override