Back to project page My-Wallet-Android.
The source code is released under:
GNU General Public License
If you think the Android project My-Wallet-Android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package piuk; /*from ww w . j a va2s. com*/ import java.math.BigInteger; import com.google.bitcoin.core.Address; import com.google.bitcoin.core.AddressFormatException; import com.google.bitcoin.core.NetworkParameters; import com.google.bitcoin.core.Transaction; import com.google.bitcoin.core.TransactionInput; import com.google.bitcoin.core.TransactionOutPoint; public class MyTransactionInput extends TransactionInput { private static final long serialVersionUID = 1L; String address; BigInteger value; NetworkParameters params; public MyTransactionInput(NetworkParameters params, Transaction parentTransaction, byte[] scriptBytes, TransactionOutPoint outpoint) { super(params, parentTransaction, scriptBytes, outpoint); this.params = params; } @Override public Address getFromAddress() { try { return new Address(params, address); } catch (AddressFormatException e) { e.printStackTrace(); } return null; } public BigInteger getValue() { return value; } public void setValue(BigInteger value) { this.value = value; } }