@Test public void testToStringWhenThereAreZeroInputs() { Transaction tx = new Transaction(UNITTEST); assertEquals(tx.toString().contains("No inputs!"), true); }
@Override public String toString() { return toString(null); }
Transaction extends ChildMessage { @Override public String toString() { return toString(null); } }
Transaction extends ChildMessage { @Override public String toString() { return toString(null); } Transaction(NetworkParameters params);  Transaction(NetworkParameters params, byte[] payloadBytes);  Transaction(NetworkParameters params, byte[] payload, int offset);  Transaction(NetworkParameters params, byte[] payload, int offset, @Nullable Message parent, MessageSerializer setSerializer, int length);  Transaction(NetworkParameters params, byte[] payload, @Nullable Message parent, MessageSerializer setSerializer, int length); }
Transaction extends ChildMessage { @Override public String toString() { return toString(null); } Transaction(NetworkParameters params);  Transaction(NetworkParameters params, byte[] payloadBytes);  Transaction(NetworkParameters params, byte[] payload, int offset);  Transaction(NetworkParameters params, byte[] payload, int offset, @Nullable Message parent, MessageSerializer setSerializer, int length);  Transaction(NetworkParameters params, byte[] payload, @Nullable Message parent, MessageSerializer setSerializer, int length); @Override Sha256Hash getHash(); String getHashAsString(); Coin getInputSum(); Coin getValueSentToMe(TransactionBag transactionBag); @Nullable Map<Sha256Hash, Integer> getAppearsInHashes(); boolean isPending(); void setBlockAppearance(StoredBlock block, boolean bestChain, int relativityOffset); void addBlockAppearance(final Sha256Hash blockHash, int relativityOffset); Coin getValueSentFromMe(TransactionBag wallet); Coin getOutputSum(); Coin getValue(TransactionBag wallet); Coin getFee(); boolean isAnyOutputSpent(); boolean isEveryOwnedOutputSpent(TransactionBag transactionBag); Date getUpdateTime(); void setUpdateTime(Date updatedAt); boolean hasWitnesses(); int getOptimalEncodingMessageSize(); int getMessageSizeForPriorityCalc(); boolean isCoinBase(); boolean isMature(); @Override String toString(); String toString(@Nullable AbstractBlockChain chain); void clearInputs(); TransactionInput addInput(TransactionOutput from); TransactionInput addInput(TransactionInput input); TransactionInput addInput(Sha256Hash spendTxHash, long outputIndex, Script script); TransactionInput addSignedInput(TransactionOutPoint prevOut, Script scriptPubKey, ECKey sigKey,
                                           SigHash sigHash, boolean anyoneCanPay); TransactionInput addSignedInput(TransactionOutPoint prevOut, Script scriptPubKey, ECKey sigKey); TransactionInput addSignedInput(TransactionOutput output, ECKey signingKey); TransactionInput addSignedInput(TransactionOutput output, ECKey signingKey, SigHash sigHash, boolean anyoneCanPay); void clearOutputs(); TransactionOutput addOutput(TransactionOutput to); TransactionOutput addOutput(Coin value, Address address); TransactionOutput addOutput(Coin value, ECKey pubkey); TransactionOutput addOutput(Coin value, Script script); TransactionSignature calculateSignature(int inputIndex, ECKey key,
                                                                byte[] redeemScript,
                                                                SigHash hashType, boolean anyoneCanPay); TransactionSignature calculateSignature(int inputIndex, ECKey key,
                                                                 Script redeemScript,
                                                                 SigHash hashType, boolean anyoneCanPay); TransactionSignature calculateSignature(int inputIndex, ECKey key,
                                                   @Nullable KeyParameter aesKey,
                                                   byte[] redeemScript,
                                                   SigHash hashType, boolean anyoneCanPay); TransactionSignature calculateSignature(int inputIndex, ECKey key,
                                                   @Nullable KeyParameter aesKey,
                                                   Script redeemScript,
                                                   SigHash hashType, boolean anyoneCanPay); Sha256Hash hashForSignature(int inputIndex, byte[] redeemScript,
                                                    SigHash type, boolean anyoneCanPay); Sha256Hash hashForSignature(int inputIndex, Script redeemScript,
                                                    SigHash type, boolean anyoneCanPay); Sha256Hash hashForSignature(int inputIndex, byte[] connectedScript, byte sigHashType); long getLockTime(); void setLockTime(long lockTime); long getVersion(); void setVersion(int version); List<TransactionInput> getInputs(); List<TransactionOutput> getOutputs(); List<TransactionOutput> getWalletOutputs(TransactionBag transactionBag); void shuffleOutputs(); TransactionInput getInput(long index); TransactionOutput getOutput(long index); TransactionConfidence getConfidence(); TransactionConfidence getConfidence(Context context); TransactionConfidence getConfidence(TxConfidenceTable table); boolean hasConfidence(); @Override boolean equals(Object o); @Override int hashCode(); int getSigOpCount(); void checkCoinBaseHeight(final int height); void verify(); boolean isTimeLocked(); boolean hasRelativeLockTime(); boolean isOptInFullRBF(); boolean isFinal(int height, long blockTimeSeconds); Date estimateLockTime(AbstractBlockChain chain); Purpose getPurpose(); void setPurpose(Purpose purpose); @Nullable ExchangeRate getExchangeRate(); void setExchangeRate(ExchangeRate exchangeRate); String getMemo(); void setMemo(String memo); }
Transaction extends ChildMessage { @Override public String toString() { return toString(null); } Transaction(NetworkParameters params);  Transaction(NetworkParameters params, byte[] payloadBytes);  Transaction(NetworkParameters params, byte[] payload, int offset);  Transaction(NetworkParameters params, byte[] payload, int offset, @Nullable Message parent, MessageSerializer setSerializer, int length);  Transaction(NetworkParameters params, byte[] payload, @Nullable Message parent, MessageSerializer setSerializer, int length); @Override Sha256Hash getHash(); String getHashAsString(); Coin getInputSum(); Coin getValueSentToMe(TransactionBag transactionBag); @Nullable Map<Sha256Hash, Integer> getAppearsInHashes(); boolean isPending(); void setBlockAppearance(StoredBlock block, boolean bestChain, int relativityOffset); void addBlockAppearance(final Sha256Hash blockHash, int relativityOffset); Coin getValueSentFromMe(TransactionBag wallet); Coin getOutputSum(); Coin getValue(TransactionBag wallet); Coin getFee(); boolean isAnyOutputSpent(); boolean isEveryOwnedOutputSpent(TransactionBag transactionBag); Date getUpdateTime(); void setUpdateTime(Date updatedAt); boolean hasWitnesses(); int getOptimalEncodingMessageSize(); int getMessageSizeForPriorityCalc(); boolean isCoinBase(); boolean isMature(); @Override String toString(); String toString(@Nullable AbstractBlockChain chain); void clearInputs(); TransactionInput addInput(TransactionOutput from); TransactionInput addInput(TransactionInput input); TransactionInput addInput(Sha256Hash spendTxHash, long outputIndex, Script script); TransactionInput addSignedInput(TransactionOutPoint prevOut, Script scriptPubKey, ECKey sigKey,
                                           SigHash sigHash, boolean anyoneCanPay); TransactionInput addSignedInput(TransactionOutPoint prevOut, Script scriptPubKey, ECKey sigKey); TransactionInput addSignedInput(TransactionOutput output, ECKey signingKey); TransactionInput addSignedInput(TransactionOutput output, ECKey signingKey, SigHash sigHash, boolean anyoneCanPay); void clearOutputs(); TransactionOutput addOutput(TransactionOutput to); TransactionOutput addOutput(Coin value, Address address); TransactionOutput addOutput(Coin value, ECKey pubkey); TransactionOutput addOutput(Coin value, Script script); TransactionSignature calculateSignature(int inputIndex, ECKey key,
                                                                byte[] redeemScript,
                                                                SigHash hashType, boolean anyoneCanPay); TransactionSignature calculateSignature(int inputIndex, ECKey key,
                                                                 Script redeemScript,
                                                                 SigHash hashType, boolean anyoneCanPay); TransactionSignature calculateSignature(int inputIndex, ECKey key,
                                                   @Nullable KeyParameter aesKey,
                                                   byte[] redeemScript,
                                                   SigHash hashType, boolean anyoneCanPay); TransactionSignature calculateSignature(int inputIndex, ECKey key,
                                                   @Nullable KeyParameter aesKey,
                                                   Script redeemScript,
                                                   SigHash hashType, boolean anyoneCanPay); Sha256Hash hashForSignature(int inputIndex, byte[] redeemScript,
                                                    SigHash type, boolean anyoneCanPay); Sha256Hash hashForSignature(int inputIndex, Script redeemScript,
                                                    SigHash type, boolean anyoneCanPay); Sha256Hash hashForSignature(int inputIndex, byte[] connectedScript, byte sigHashType); long getLockTime(); void setLockTime(long lockTime); long getVersion(); void setVersion(int version); List<TransactionInput> getInputs(); List<TransactionOutput> getOutputs(); List<TransactionOutput> getWalletOutputs(TransactionBag transactionBag); void shuffleOutputs(); TransactionInput getInput(long index); TransactionOutput getOutput(long index); TransactionConfidence getConfidence(); TransactionConfidence getConfidence(Context context); TransactionConfidence getConfidence(TxConfidenceTable table); boolean hasConfidence(); @Override boolean equals(Object o); @Override int hashCode(); int getSigOpCount(); void checkCoinBaseHeight(final int height); void verify(); boolean isTimeLocked(); boolean hasRelativeLockTime(); boolean isOptInFullRBF(); boolean isFinal(int height, long blockTimeSeconds); Date estimateLockTime(AbstractBlockChain chain); Purpose getPurpose(); void setPurpose(Purpose purpose); @Nullable ExchangeRate getExchangeRate(); void setExchangeRate(ExchangeRate exchangeRate); String getMemo(); void setMemo(String memo); static final Comparator<Transaction> SORT_TX_BY_UPDATE_TIME; static final Comparator<Transaction> SORT_TX_BY_HEIGHT; static final int LOCKTIME_THRESHOLD; static final BigInteger LOCKTIME_THRESHOLD_BIG; static final int MAX_STANDARD_TX_SIZE; static final Coin REFERENCE_DEFAULT_MIN_TX_FEE; static final Coin DEFAULT_TX_FEE; static final Coin MIN_NONDUST_OUTPUT; static final byte SIGHASH_ANYONECANPAY_VALUE; }