Package org.bitcoinj.wallet
Interface Protos.TransactionOutputOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
- All Known Implementing Classes:
Protos.TransactionOutput,Protos.TransactionOutput.Builder
- Enclosing class:
- Protos
public static interface Protos.TransactionOutputOrBuilder
extends com.google.protobuf.MessageLiteOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptioncom.google.protobuf.ByteStringscript of transaction outputcom.google.protobuf.ByteStringIf spent, the hash of the transaction doing the spend.intIf spent, the index of the transaction input of the transaction doing the spend.longgetValue()required int64 value = 1;booleanscript of transaction outputbooleanIf spent, the hash of the transaction doing the spend.booleanIf spent, the index of the transaction input of the transaction doing the spend.booleanhasValue()required int64 value = 1;Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
hasValue
boolean hasValue()required int64 value = 1;- Returns:
- Whether the value field is set.
-
getValue
long getValue()required int64 value = 1;- Returns:
- The value.
-
hasScriptBytes
boolean hasScriptBytes()script of transaction output
required bytes script_bytes = 2;- Returns:
- Whether the scriptBytes field is set.
-
getScriptBytes
com.google.protobuf.ByteString getScriptBytes()script of transaction output
required bytes script_bytes = 2;- Returns:
- The scriptBytes.
-
hasSpentByTransactionHash
boolean hasSpentByTransactionHash()If spent, the hash of the transaction doing the spend.
optional bytes spent_by_transaction_hash = 3;- Returns:
- Whether the spentByTransactionHash field is set.
-
getSpentByTransactionHash
com.google.protobuf.ByteString getSpentByTransactionHash()If spent, the hash of the transaction doing the spend.
optional bytes spent_by_transaction_hash = 3;- Returns:
- The spentByTransactionHash.
-
hasSpentByTransactionIndex
boolean hasSpentByTransactionIndex()If spent, the index of the transaction input of the transaction doing the spend.
optional int32 spent_by_transaction_index = 4;- Returns:
- Whether the spentByTransactionIndex field is set.
-
getSpentByTransactionIndex
int getSpentByTransactionIndex()If spent, the index of the transaction input of the transaction doing the spend.
optional int32 spent_by_transaction_index = 4;- Returns:
- The spentByTransactionIndex.
-