Transaction.getValue() will be positive if the payment was incoming, and negative if the payment was outgoing. If it is zero, the transaction was neutral to your wallet.
On 10/01/2017 01:06 AM, Edik Edik wrote: > Hi there > > Are there any methods on the Transaction object that can tell me whether > this is an outgoing or incoming originated transaction? > > I'm not talking about the various inputs/outputs (that obviously can be > seen with getOutput/getInput) but whether the transaction itself as a > whole (with all its inputs/outputs) was started by me or was sent to me. > > I browsed the methods on Transaction without success. > > Thanks again. > > -- > 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 bitcoinj+unsubscr...@googlegroups.com > <mailto:bitcoinj+unsubscr...@googlegroups.com>. > For more options, visit https://groups.google.com/d/optout. -- 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 bitcoinj+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.