Class Protos.TransactionConfidence

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  Protos.TransactionConfidence.Builder
      A description of the confidence we have that a transaction cannot be reversed in the future.
      static class  Protos.TransactionConfidence.Source
      Where did we get this transaction from? Knowing the source may help us to risk analyze pending transactions.
      static class  Protos.TransactionConfidence.Type
      Protobuf enum wallet.TransactionConfidence.Type
      • Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageLite

        com.google.protobuf.GeneratedMessageLite.DefaultInstanceBasedParser<T extends com.google.protobuf.GeneratedMessageLite<T,​?>>, com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,​BuilderType>,​BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,​BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,​BuilderType>,​BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,​BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,​BuilderType>,​BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,​BuilderType>>, com.google.protobuf.GeneratedMessageLite.GeneratedExtension<ContainingType extends com.google.protobuf.MessageLite,​Type extends java.lang.Object>, com.google.protobuf.GeneratedMessageLite.MethodToInvoke, com.google.protobuf.GeneratedMessageLite.SerializedForm
      • Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

        com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
    • Field Detail

      • APPEARED_AT_HEIGHT_FIELD_NUMBER

        public static final int APPEARED_AT_HEIGHT_FIELD_NUMBER
        See Also:
        Constant Field Values
      • OVERRIDING_TRANSACTION_FIELD_NUMBER

        public static final int OVERRIDING_TRANSACTION_FIELD_NUMBER
        See Also:
        Constant Field Values
      • BROADCAST_BY_FIELD_NUMBER

        public static final int BROADCAST_BY_FIELD_NUMBER
        See Also:
        Constant Field Values
      • LAST_BROADCASTED_AT_FIELD_NUMBER

        public static final int LAST_BROADCASTED_AT_FIELD_NUMBER
        See Also:
        Constant Field Values
    • Method Detail

      • hasType

        public boolean hasType()
         This is optional in case we add confidence types to prevent parse errors - backwards compatible.
         
        optional .wallet.TransactionConfidence.Type type = 1;
        Specified by:
        hasType in interface Protos.TransactionConfidenceOrBuilder
        Returns:
        Whether the type field is set.
      • hasAppearedAtHeight

        public boolean hasAppearedAtHeight()
         If type == BUILDING then this is the chain height at which the transaction was included.
         
        optional int32 appeared_at_height = 2;
        Specified by:
        hasAppearedAtHeight in interface Protos.TransactionConfidenceOrBuilder
        Returns:
        Whether the appearedAtHeight field is set.
      • getAppearedAtHeight

        public int getAppearedAtHeight()
         If type == BUILDING then this is the chain height at which the transaction was included.
         
        optional int32 appeared_at_height = 2;
        Specified by:
        getAppearedAtHeight in interface Protos.TransactionConfidenceOrBuilder
        Returns:
        The appearedAtHeight.
      • hasOverridingTransaction

        public 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;
        Specified by:
        hasOverridingTransaction in interface Protos.TransactionConfidenceOrBuilder
        Returns:
        Whether the overridingTransaction field is set.
      • getOverridingTransaction

        public 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;
        Specified by:
        getOverridingTransaction in interface Protos.TransactionConfidenceOrBuilder
        Returns:
        The overridingTransaction.
      • hasDepth

        public 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;
        Specified by:
        hasDepth in interface Protos.TransactionConfidenceOrBuilder
        Returns:
        Whether the depth field is set.
      • getDepth

        public 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;
        Specified by:
        getDepth in interface Protos.TransactionConfidenceOrBuilder
        Returns:
        The depth.
      • getBroadcastByOrBuilderList

        public java.util.List<? extends Protos.PeerAddressOrBuilder> getBroadcastByOrBuilderList()
        repeated .wallet.PeerAddress broadcast_by = 6;
      • getBroadcastByOrBuilder

        public Protos.PeerAddressOrBuilder getBroadcastByOrBuilder​(int index)
        repeated .wallet.PeerAddress broadcast_by = 6;
      • hasLastBroadcastedAt

        public boolean hasLastBroadcastedAt()
         Millis since epoch the transaction was last announced to us.
         
        optional int64 last_broadcasted_at = 8;
        Specified by:
        hasLastBroadcastedAt in interface Protos.TransactionConfidenceOrBuilder
        Returns:
        Whether the lastBroadcastedAt field is set.
      • parseFrom

        public static Protos.TransactionConfidence parseFrom​(java.nio.ByteBuffer data)
                                                      throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Protos.TransactionConfidence parseFrom​(java.nio.ByteBuffer data,
                                                             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                      throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Protos.TransactionConfidence parseFrom​(com.google.protobuf.ByteString data)
                                                      throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Protos.TransactionConfidence parseFrom​(com.google.protobuf.ByteString data,
                                                             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                      throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Protos.TransactionConfidence parseFrom​(byte[] data)
                                                      throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Protos.TransactionConfidence parseFrom​(byte[] data,
                                                             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                      throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Protos.TransactionConfidence parseFrom​(java.io.InputStream input)
                                                      throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static Protos.TransactionConfidence parseFrom​(java.io.InputStream input,
                                                             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                      throws java.io.IOException
        Throws:
        java.io.IOException
      • parseDelimitedFrom

        public static Protos.TransactionConfidence parseDelimitedFrom​(java.io.InputStream input)
                                                               throws java.io.IOException
        Throws:
        java.io.IOException
      • parseDelimitedFrom

        public static Protos.TransactionConfidence parseDelimitedFrom​(java.io.InputStream input,
                                                                      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                               throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static Protos.TransactionConfidence parseFrom​(com.google.protobuf.CodedInputStream input)
                                                      throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static Protos.TransactionConfidence parseFrom​(com.google.protobuf.CodedInputStream input,
                                                             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                      throws java.io.IOException
        Throws:
        java.io.IOException
      • dynamicMethod

        protected final java.lang.Object dynamicMethod​(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
                                                       java.lang.Object arg0,
                                                       java.lang.Object arg1)
        Specified by:
        dynamicMethod in class com.google.protobuf.GeneratedMessageLite<Protos.TransactionConfidence,​Protos.TransactionConfidence.Builder>