Is it due to this limitation than getFee() always returns 0? How can blockchain.info determine the transaction fees, while I'm not able to using bitcoinj?
On Saturday, April 15, 2017 at 4:39:12 AM UTC-5, Andreas Schildbach wrote: > > On 04/15/2017 05:57 AM, Nishil Shah wrote: > > I'm able to get the transaction input address using getFromAddress(). > > However, when I try to get a value associated with a transaction input, > I > > keep getting null. Anyone know why this is? Is there any other way to > get > > it? > > You only can get the input amount if it has a connected output. This is > usually only the case for transactions you created yourself. > > This is a limitation of the Bitcoin transaction format. For redundancy > reasons, inputs do not have an amount -- they always spend a whole output. > > > -- 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.
