Thanks for the reply. I think that is the right thing to due. However when
I try it out on the first 5000 blocks of the block chain (from the genesis
block) all of the Transactioninputs have a null value for the .getValue()
because none of them are "connected" to an TransactionOutput. Is this a
limitation of bitcoinJ? Do TransactionsInputs only have values if they come
from a wallet application that is running? I am more interested in this for
research purposes.

Thanks.

On Tue, Jan 24, 2017 at 4:59 PM, Andreas Schildbach <[email protected]>
wrote:

> Sounds like TransactionInput.getValue() is your friend. However if the
> input isn't connected to an output of a previous transaction then that
> value isn't known.
>
> Transactions can send to any number of addresses (and other script
> types) at the same time. Loop through all the outputs and use the
> getAddressFrom* methods.
>
>
> On 01/23/2017 10:13 PM, [email protected] wrote:
> > Hello,
> >
> > Is there a way to find the amount of bitcoins each TransactionInput sent
> to
> > the Transaction object? I also want to know if it is possible to find the
> > amount that is sent to the TransactionObject and the address associated
> > with the Transaction Object.
> >
> > Thanks
> >
>
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "bitcoinj" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/bitcoinj/Zl6MzdP6NqM/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Leelabari Fulbel
Software Engineering Intern

-- 
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