Package org.bitcoinj.wallet
Interface Protos.TransactionConfidenceOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
- All Known Implementing Classes:
Protos.TransactionConfidence
,Protos.TransactionConfidence.Builder
- Enclosing class:
- Protos
public static interface Protos.TransactionConfidenceOrBuilder extends com.google.protobuf.MessageLiteOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getAppearedAtHeight()
If type == BUILDING then this is the chain height at which the transaction was included.Protos.PeerAddress
getBroadcastBy(int index)
repeated .wallet.PeerAddress broadcast_by = 6;
int
getBroadcastByCount()
repeated .wallet.PeerAddress broadcast_by = 6;
java.util.List<Protos.PeerAddress>
getBroadcastByList()
repeated .wallet.PeerAddress broadcast_by = 6;
int
getDepth()
If type == BUILDING then this is the depth of the transaction in the blockchain.long
getLastBroadcastedAt()
Millis since epoch the transaction was last announced to us.com.google.protobuf.ByteString
getOverridingTransaction()
If set, hash of the transaction that double spent this one into oblivion.Protos.TransactionConfidence.Source
getSource()
optional .wallet.TransactionConfidence.Source source = 7;
Protos.TransactionConfidence.Type
getType()
This is optional in case we add confidence types to prevent parse errors - backwards compatible.boolean
hasAppearedAtHeight()
If type == BUILDING then this is the chain height at which the transaction was included.boolean
hasDepth()
If type == BUILDING then this is the depth of the transaction in the blockchain.boolean
hasLastBroadcastedAt()
Millis since epoch the transaction was last announced to us.boolean
hasOverridingTransaction()
If set, hash of the transaction that double spent this one into oblivion.boolean
hasSource()
optional .wallet.TransactionConfidence.Source source = 7;
boolean
hasType()
This is optional in case we add confidence types to prevent parse errors - backwards compatible.
-
-
-
Method Detail
-
hasType
boolean hasType()
This is optional in case we add confidence types to prevent parse errors - backwards compatible.
optional .wallet.TransactionConfidence.Type type = 1;
- Returns:
- Whether the type field is set.
-
getType
Protos.TransactionConfidence.Type getType()
This is optional in case we add confidence types to prevent parse errors - backwards compatible.
optional .wallet.TransactionConfidence.Type type = 1;
- Returns:
- The type.
-
hasAppearedAtHeight
boolean hasAppearedAtHeight()
If type == BUILDING then this is the chain height at which the transaction was included.
optional int32 appeared_at_height = 2;
- Returns:
- Whether the appearedAtHeight field is set.
-
getAppearedAtHeight
int getAppearedAtHeight()
If type == BUILDING then this is the chain height at which the transaction was included.
optional int32 appeared_at_height = 2;
- Returns:
- The appearedAtHeight.
-
hasOverridingTransaction
boolean hasOverridingTransaction()
If set, hash of the transaction that double spent this one into oblivion. A transaction can be double spent by multiple transactions in the case of several inputs being re-spent by several transactions but we don't bother to track them all, just the first. This only makes sense if type = DEAD.
optional bytes overriding_transaction = 3;
- Returns:
- Whether the overridingTransaction field is set.
-
getOverridingTransaction
com.google.protobuf.ByteString getOverridingTransaction()
If set, hash of the transaction that double spent this one into oblivion. A transaction can be double spent by multiple transactions in the case of several inputs being re-spent by several transactions but we don't bother to track them all, just the first. This only makes sense if type = DEAD.
optional bytes overriding_transaction = 3;
- Returns:
- The overridingTransaction.
-
hasDepth
boolean hasDepth()
If type == BUILDING then this is the depth of the transaction in the blockchain. Zero confirmations: depth = 0, one confirmation: depth = 1 etc.
optional int32 depth = 4;
- Returns:
- Whether the depth field is set.
-
getDepth
int getDepth()
If type == BUILDING then this is the depth of the transaction in the blockchain. Zero confirmations: depth = 0, one confirmation: depth = 1 etc.
optional int32 depth = 4;
- Returns:
- The depth.
-
getBroadcastByList
java.util.List<Protos.PeerAddress> getBroadcastByList()
repeated .wallet.PeerAddress broadcast_by = 6;
-
getBroadcastBy
Protos.PeerAddress getBroadcastBy(int index)
repeated .wallet.PeerAddress broadcast_by = 6;
-
getBroadcastByCount
int getBroadcastByCount()
repeated .wallet.PeerAddress broadcast_by = 6;
-
hasLastBroadcastedAt
boolean hasLastBroadcastedAt()
Millis since epoch the transaction was last announced to us.
optional int64 last_broadcasted_at = 8;
- Returns:
- Whether the lastBroadcastedAt field is set.
-
getLastBroadcastedAt
long getLastBroadcastedAt()
Millis since epoch the transaction was last announced to us.
optional int64 last_broadcasted_at = 8;
- Returns:
- The lastBroadcastedAt.
-
hasSource
boolean hasSource()
optional .wallet.TransactionConfidence.Source source = 7;
- Returns:
- Whether the source field is set.
-
getSource
Protos.TransactionConfidence.Source getSource()
optional .wallet.TransactionConfidence.Source source = 7;
- Returns:
- The source.
-
-