Package org.bitcoinj.wallet
Interface Protos.TransactionOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
- All Known Implementing Classes:
Protos.Transaction
,Protos.Transaction.Builder
- Enclosing class:
- Protos
public static interface Protos.TransactionOrBuilder
extends com.google.protobuf.MessageLiteOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptioncom.google.protobuf.ByteString
getBlockHash
(int index) A list of blocks in which the transaction has been observed (on any chain).int
A list of blocks in which the transaction has been observed (on any chain).List<com.google.protobuf.ByteString>
A list of blocks in which the transaction has been observed (on any chain).int
getBlockRelativityOffsets
(int index) repeated int32 block_relativity_offsets = 11;
int
repeated int32 block_relativity_offsets = 11;
repeated int32 block_relativity_offsets = 11;
Data describing where the transaction is in the chain.Exchange rate that was valid when the transaction was sent.com.google.protobuf.ByteString
getHash()
required bytes hash = 2;
int
The nLockTime field is useful for contracts.getMemo()
Memo of the transaction.com.google.protobuf.ByteString
Memo of the transaction.getPool()
If pool is not present, that means either: - This Transaction is either not in a wallet at all (the proto is re-used elsewhere) - Or it is stored but for other purposes, for example, because it is the overriding transaction of a double spend.optional .wallet.Transaction.Purpose purpose = 10 [default = UNKNOWN];
getTransactionInput
(int index) repeated .wallet.TransactionInput transaction_input = 6;
int
repeated .wallet.TransactionInput transaction_input = 6;
repeated .wallet.TransactionInput transaction_input = 6;
getTransactionOutput
(int index) repeated .wallet.TransactionOutput transaction_output = 7;
int
repeated .wallet.TransactionOutput transaction_output = 7;
repeated .wallet.TransactionOutput transaction_output = 7;
long
millis since epoch the transaction was last updatedint
See Wallet.java for detailed description of pool semanticsboolean
Data describing where the transaction is in the chain.boolean
Exchange rate that was valid when the transaction was sent.boolean
hasHash()
required bytes hash = 2;
boolean
The nLockTime field is useful for contracts.boolean
hasMemo()
Memo of the transaction.boolean
hasPool()
If pool is not present, that means either: - This Transaction is either not in a wallet at all (the proto is re-used elsewhere) - Or it is stored but for other purposes, for example, because it is the overriding transaction of a double spend.boolean
optional .wallet.Transaction.Purpose purpose = 10 [default = UNKNOWN];
boolean
millis since epoch the transaction was last updatedboolean
See Wallet.java for detailed description of pool semanticsMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
hasVersion
boolean hasVersion()See Wallet.java for detailed description of pool semantics
required int32 version = 1;
- Returns:
- Whether the version field is set.
-
getVersion
int getVersion()See Wallet.java for detailed description of pool semantics
required int32 version = 1;
- Returns:
- The version.
-
hasHash
boolean hasHash()required bytes hash = 2;
- Returns:
- Whether the hash field is set.
-
getHash
com.google.protobuf.ByteString getHash()required bytes hash = 2;
- Returns:
- The hash.
-
hasPool
boolean hasPool()If pool is not present, that means either: - This Transaction is either not in a wallet at all (the proto is re-used elsewhere) - Or it is stored but for other purposes, for example, because it is the overriding transaction of a double spend. - Or the Pool enum got a new value which your software is too old to parse.
optional .wallet.Transaction.Pool pool = 3;
- Returns:
- Whether the pool field is set.
-
getPool
Protos.Transaction.Pool getPool()If pool is not present, that means either: - This Transaction is either not in a wallet at all (the proto is re-used elsewhere) - Or it is stored but for other purposes, for example, because it is the overriding transaction of a double spend. - Or the Pool enum got a new value which your software is too old to parse.
optional .wallet.Transaction.Pool pool = 3;
- Returns:
- The pool.
-
hasLockTime
boolean hasLockTime()The nLockTime field is useful for contracts.
optional uint32 lock_time = 4;
- Returns:
- Whether the lockTime field is set.
-
getLockTime
int getLockTime()The nLockTime field is useful for contracts.
optional uint32 lock_time = 4;
- Returns:
- The lockTime.
-
hasUpdatedAt
boolean hasUpdatedAt()millis since epoch the transaction was last updated
optional int64 updated_at = 5;
- Returns:
- Whether the updatedAt field is set.
-
getUpdatedAt
long getUpdatedAt()millis since epoch the transaction was last updated
optional int64 updated_at = 5;
- Returns:
- The updatedAt.
-
getTransactionInputList
List<Protos.TransactionInput> getTransactionInputList()repeated .wallet.TransactionInput transaction_input = 6;
-
getTransactionInput
repeated .wallet.TransactionInput transaction_input = 6;
-
getTransactionInputCount
int getTransactionInputCount()repeated .wallet.TransactionInput transaction_input = 6;
-
getTransactionOutputList
List<Protos.TransactionOutput> getTransactionOutputList()repeated .wallet.TransactionOutput transaction_output = 7;
-
getTransactionOutput
repeated .wallet.TransactionOutput transaction_output = 7;
-
getTransactionOutputCount
int getTransactionOutputCount()repeated .wallet.TransactionOutput transaction_output = 7;
-
getBlockHashList
List<com.google.protobuf.ByteString> getBlockHashList()A list of blocks in which the transaction has been observed (on any chain). Also, a number used to disambiguate ordering within a block.
repeated bytes block_hash = 8;
- Returns:
- A list containing the blockHash.
-
getBlockHashCount
int getBlockHashCount()A list of blocks in which the transaction has been observed (on any chain). Also, a number used to disambiguate ordering within a block.
repeated bytes block_hash = 8;
- Returns:
- The count of blockHash.
-
getBlockHash
com.google.protobuf.ByteString getBlockHash(int index) A list of blocks in which the transaction has been observed (on any chain). Also, a number used to disambiguate ordering within a block.
repeated bytes block_hash = 8;
- Parameters:
index
- The index of the element to return.- Returns:
- The blockHash at the given index.
-
getBlockRelativityOffsetsList
repeated int32 block_relativity_offsets = 11;
- Returns:
- A list containing the blockRelativityOffsets.
-
getBlockRelativityOffsetsCount
int getBlockRelativityOffsetsCount()repeated int32 block_relativity_offsets = 11;
- Returns:
- The count of blockRelativityOffsets.
-
getBlockRelativityOffsets
int getBlockRelativityOffsets(int index) repeated int32 block_relativity_offsets = 11;
- Parameters:
index
- The index of the element to return.- Returns:
- The blockRelativityOffsets at the given index.
-
hasConfidence
boolean hasConfidence()Data describing where the transaction is in the chain.
optional .wallet.TransactionConfidence confidence = 9;
- Returns:
- Whether the confidence field is set.
-
getConfidence
Protos.TransactionConfidence getConfidence()Data describing where the transaction is in the chain.
optional .wallet.TransactionConfidence confidence = 9;
- Returns:
- The confidence.
-
hasPurpose
boolean hasPurpose()optional .wallet.Transaction.Purpose purpose = 10 [default = UNKNOWN];
- Returns:
- Whether the purpose field is set.
-
getPurpose
Protos.Transaction.Purpose getPurpose()optional .wallet.Transaction.Purpose purpose = 10 [default = UNKNOWN];
- Returns:
- The purpose.
-
hasExchangeRate
boolean hasExchangeRate()Exchange rate that was valid when the transaction was sent.
optional .wallet.ExchangeRate exchange_rate = 12;
- Returns:
- Whether the exchangeRate field is set.
-
getExchangeRate
Protos.ExchangeRate getExchangeRate()Exchange rate that was valid when the transaction was sent.
optional .wallet.ExchangeRate exchange_rate = 12;
- Returns:
- The exchangeRate.
-
hasMemo
boolean hasMemo()Memo of the transaction. It can be used to record the memo of the payment request that initiated the transaction.
optional string memo = 13;
- Returns:
- Whether the memo field is set.
-
getMemo
String getMemo()Memo of the transaction. It can be used to record the memo of the payment request that initiated the transaction.
optional string memo = 13;
- Returns:
- The memo.
-
getMemoBytes
com.google.protobuf.ByteString getMemoBytes()Memo of the transaction. It can be used to record the memo of the payment request that initiated the transaction.
optional string memo = 13;
- Returns:
- The bytes for memo.
-