getFee() is not guaranteed to return null for incoming payments. In
fact, with a future "fee witness" it might know about the fee for all
transactions.


On 10/01/2017 01:33 AM, Edik Edik wrote:
> thanks
> 
> I did find transaction.getFee() also worked... :)
> 
> Maybe a bad way of doing this though.
> 
> Ed
> 
> 
> On Sunday, October 1, 2017 at 12:18:33 AM UTC+1, Andreas Schildbach wrote:
> 
>     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+u...@googlegroups.com
>     > <mailto:bitcoinj+u...@googlegroups.com>.
>     > For more options, visit https://groups.google.com/d/optout
>     <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
> <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.

Reply via email to