Package org.bitcoinj.protobuf.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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description com.google.protobuf.ByteString
getBlockHash(int index)
A list of blocks in which the transaction has been observed (on any chain).int
getBlockHashCount()
A list of blocks in which the transaction has been observed (on any chain).java.util.List<com.google.protobuf.ByteString>
getBlockHashList()
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
getBlockRelativityOffsetsCount()
repeated int32 block_relativity_offsets = 11;
java.util.List<java.lang.Integer>
getBlockRelativityOffsetsList()
repeated int32 block_relativity_offsets = 11;
Protos.TransactionConfidence
getConfidence()
Data describing where the transaction is in the chain.Protos.ExchangeRate
getExchangeRate()
Exchange rate that was valid when the transaction was sent.com.google.protobuf.ByteString
getHash()
required bytes hash = 2;
int
getLockTime()
The nLockTime field is useful for contracts.java.lang.String
getMemo()
Memo of the transaction.com.google.protobuf.ByteString
getMemoBytes()
Memo of the transaction.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.Protos.Transaction.Purpose
getPurpose()
optional .wallet.Transaction.Purpose purpose = 10 [default = UNKNOWN];
Protos.TransactionInput
getTransactionInput(int index)
repeated .wallet.TransactionInput transaction_input = 6;
int
getTransactionInputCount()
repeated .wallet.TransactionInput transaction_input = 6;
java.util.List<Protos.TransactionInput>
getTransactionInputList()
repeated .wallet.TransactionInput transaction_input = 6;
Protos.TransactionOutput
getTransactionOutput(int index)
repeated .wallet.TransactionOutput transaction_output = 7;
int
getTransactionOutputCount()
repeated .wallet.TransactionOutput transaction_output = 7;
java.util.List<Protos.TransactionOutput>
getTransactionOutputList()
repeated .wallet.TransactionOutput transaction_output = 7;
long
getUpdatedAt()
millis since epoch the transaction was last updatedint
getVersion()
See Wallet.java for detailed description of pool semanticsboolean
hasConfidence()
Data describing where the transaction is in the chain.boolean
hasExchangeRate()
Exchange rate that was valid when the transaction was sent.boolean
hasHash()
required bytes hash = 2;
boolean
hasLockTime()
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
hasPurpose()
optional .wallet.Transaction.Purpose purpose = 10 [default = UNKNOWN];
boolean
hasUpdatedAt()
millis since epoch the transaction was last updatedboolean
hasVersion()
See Wallet.java for detailed description of pool semantics
-
-
-
Method Detail
-
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
java.util.List<Protos.TransactionInput> getTransactionInputList()
repeated .wallet.TransactionInput transaction_input = 6;
-
getTransactionInput
Protos.TransactionInput getTransactionInput(int index)
repeated .wallet.TransactionInput transaction_input = 6;
-
getTransactionInputCount
int getTransactionInputCount()
repeated .wallet.TransactionInput transaction_input = 6;
-
getTransactionOutputList
java.util.List<Protos.TransactionOutput> getTransactionOutputList()
repeated .wallet.TransactionOutput transaction_output = 7;
-
getTransactionOutput
Protos.TransactionOutput getTransactionOutput(int index)
repeated .wallet.TransactionOutput transaction_output = 7;
-
getTransactionOutputCount
int getTransactionOutputCount()
repeated .wallet.TransactionOutput transaction_output = 7;
-
getBlockHashList
java.util.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
java.util.List<java.lang.Integer> 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
java.lang.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.
-
-