public Coin getInputSum ( ) { Coin inputTotal = Coin . ZERO ; for ( TransactionInput input : inputs ) { Coin inputValue = input . getValue ( ) ; if ( inputValue != null ) { inputTotal = inputTotal . add ( inputValue ) ; } } return inputTotal ; }
Gets the sum of the inputs regardless of who owns them .