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.ByteString
script of transaction outputcom.google.protobuf.ByteString
If spent, the hash of the transaction doing the spend.int
If spent, the index of the transaction input of the transaction doing the spend.long
getValue()
required int64 value = 1;
boolean
script of transaction outputboolean
If spent, the hash of the transaction doing the spend.boolean
If spent, the index of the transaction input of the transaction doing the spend.boolean
hasValue()
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.
-