Package org.bitcoinj.protobuf.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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description com.google.protobuf.ByteStringgetScriptBytes()script of transaction outputcom.google.protobuf.ByteStringgetSpentByTransactionHash()If spent, the hash of the transaction doing the spend.intgetSpentByTransactionIndex()If spent, the index of the transaction input of the transaction doing the spend.longgetValue()required int64 value = 1;booleanhasScriptBytes()script of transaction outputbooleanhasSpentByTransactionHash()If spent, the hash of the transaction doing the spend.booleanhasSpentByTransactionIndex()If spent, the index of the transaction input of the transaction doing the spend.booleanhasValue()required int64 value = 1;
-
-
-
Method Detail
-
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.
-
-