Class Protos.Wallet

    • Field Detail

      • NETWORK_IDENTIFIER_FIELD_NUMBER

        public static final int NETWORK_IDENTIFIER_FIELD_NUMBER
        See Also:
        Constant Field Values
      • LAST_SEEN_BLOCK_HASH_FIELD_NUMBER

        public static final int LAST_SEEN_BLOCK_HASH_FIELD_NUMBER
        See Also:
        Constant Field Values
      • LAST_SEEN_BLOCK_HEIGHT_FIELD_NUMBER

        public static final int LAST_SEEN_BLOCK_HEIGHT_FIELD_NUMBER
        See Also:
        Constant Field Values
      • LAST_SEEN_BLOCK_TIME_SECS_FIELD_NUMBER

        public static final int LAST_SEEN_BLOCK_TIME_SECS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • TRANSACTION_FIELD_NUMBER

        public static final int TRANSACTION_FIELD_NUMBER
        See Also:
        Constant Field Values
      • WATCHED_SCRIPT_FIELD_NUMBER

        public static final int WATCHED_SCRIPT_FIELD_NUMBER
        See Also:
        Constant Field Values
      • ENCRYPTION_TYPE_FIELD_NUMBER

        public static final int ENCRYPTION_TYPE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • ENCRYPTION_PARAMETERS_FIELD_NUMBER

        public static final int ENCRYPTION_PARAMETERS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • DESCRIPTION_FIELD_NUMBER

        public static final int DESCRIPTION_FIELD_NUMBER
        See Also:
        Constant Field Values
      • KEY_ROTATION_TIME_FIELD_NUMBER

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

      • hasNetworkIdentifier

        public boolean hasNetworkIdentifier()
         the network used by this wallet
         
        required string network_identifier = 1;
        Specified by:
        hasNetworkIdentifier in interface Protos.WalletOrBuilder
        Returns:
        Whether the networkIdentifier field is set.
      • getNetworkIdentifier

        public java.lang.String getNetworkIdentifier()
         the network used by this wallet
         
        required string network_identifier = 1;
        Specified by:
        getNetworkIdentifier in interface Protos.WalletOrBuilder
        Returns:
        The networkIdentifier.
      • getNetworkIdentifierBytes

        public com.google.protobuf.ByteString getNetworkIdentifierBytes()
         the network used by this wallet
         
        required string network_identifier = 1;
        Specified by:
        getNetworkIdentifierBytes in interface Protos.WalletOrBuilder
        Returns:
        The bytes for networkIdentifier.
      • hasLastSeenBlockHash

        public boolean hasLastSeenBlockHash()
         The SHA256 hash of the head of the best chain seen by this wallet.
         
        optional bytes last_seen_block_hash = 2;
        Specified by:
        hasLastSeenBlockHash in interface Protos.WalletOrBuilder
        Returns:
        Whether the lastSeenBlockHash field is set.
      • getLastSeenBlockHash

        public com.google.protobuf.ByteString getLastSeenBlockHash()
         The SHA256 hash of the head of the best chain seen by this wallet.
         
        optional bytes last_seen_block_hash = 2;
        Specified by:
        getLastSeenBlockHash in interface Protos.WalletOrBuilder
        Returns:
        The lastSeenBlockHash.
      • hasLastSeenBlockHeight

        public boolean hasLastSeenBlockHeight()
         The height in the chain of the last seen block.
         
        optional uint32 last_seen_block_height = 12;
        Specified by:
        hasLastSeenBlockHeight in interface Protos.WalletOrBuilder
        Returns:
        Whether the lastSeenBlockHeight field is set.
      • getLastSeenBlockHeight

        public int getLastSeenBlockHeight()
         The height in the chain of the last seen block.
         
        optional uint32 last_seen_block_height = 12;
        Specified by:
        getLastSeenBlockHeight in interface Protos.WalletOrBuilder
        Returns:
        The lastSeenBlockHeight.
      • hasLastSeenBlockTimeSecs

        public boolean hasLastSeenBlockTimeSecs()
        optional int64 last_seen_block_time_secs = 14;
        Specified by:
        hasLastSeenBlockTimeSecs in interface Protos.WalletOrBuilder
        Returns:
        Whether the lastSeenBlockTimeSecs field is set.
      • getKeyOrBuilderList

        public java.util.List<? extends Protos.KeyOrBuilder> getKeyOrBuilderList()
        repeated .wallet.Key key = 3;
      • getKeyOrBuilder

        public Protos.KeyOrBuilder getKeyOrBuilder​(int index)
        repeated .wallet.Key key = 3;
      • getTransactionOrBuilderList

        public java.util.List<? extends Protos.TransactionOrBuilder> getTransactionOrBuilderList()
        repeated .wallet.Transaction transaction = 4;
      • getTransactionOrBuilder

        public Protos.TransactionOrBuilder getTransactionOrBuilder​(int index)
        repeated .wallet.Transaction transaction = 4;
      • getWatchedScriptOrBuilderList

        public java.util.List<? extends Protos.ScriptOrBuilder> getWatchedScriptOrBuilderList()
        repeated .wallet.Script watched_script = 15;
      • getWatchedScriptOrBuilder

        public Protos.ScriptOrBuilder getWatchedScriptOrBuilder​(int index)
        repeated .wallet.Script watched_script = 15;
      • hasEncryptionType

        public boolean hasEncryptionType()
        optional .wallet.Wallet.EncryptionType encryption_type = 5 [default = UNENCRYPTED];
        Specified by:
        hasEncryptionType in interface Protos.WalletOrBuilder
        Returns:
        Whether the encryptionType field is set.
      • hasEncryptionParameters

        public boolean hasEncryptionParameters()
        optional .wallet.ScryptParameters encryption_parameters = 6;
        Specified by:
        hasEncryptionParameters in interface Protos.WalletOrBuilder
        Returns:
        Whether the encryptionParameters field is set.
      • hasVersion

        public boolean hasVersion()
         The version number of the wallet - used to detect wallets that were produced in the future
         (i.e. the wallet may contain some future format this protobuf or parser code does not know about).
         A version that's higher than the default is considered from the future.
         
        optional int32 version = 7 [default = 1];
        Specified by:
        hasVersion in interface Protos.WalletOrBuilder
        Returns:
        Whether the version field is set.
      • getVersion

        public int getVersion()
         The version number of the wallet - used to detect wallets that were produced in the future
         (i.e. the wallet may contain some future format this protobuf or parser code does not know about).
         A version that's higher than the default is considered from the future.
         
        optional int32 version = 7 [default = 1];
        Specified by:
        getVersion in interface Protos.WalletOrBuilder
        Returns:
        The version.
      • getExtensionOrBuilderList

        public java.util.List<? extends Protos.ExtensionOrBuilder> getExtensionOrBuilderList()
        repeated .wallet.Extension extension = 10;
      • getExtensionOrBuilder

        public Protos.ExtensionOrBuilder getExtensionOrBuilder​(int index)
        repeated .wallet.Extension extension = 10;
      • hasDescription

        public boolean hasDescription()
         A UTF8 encoded text description of the wallet that is intended for end user provided text.
         
        optional string description = 11;
        Specified by:
        hasDescription in interface Protos.WalletOrBuilder
        Returns:
        Whether the description field is set.
      • getDescription

        public java.lang.String getDescription()
         A UTF8 encoded text description of the wallet that is intended for end user provided text.
         
        optional string description = 11;
        Specified by:
        getDescription in interface Protos.WalletOrBuilder
        Returns:
        The description.
      • getDescriptionBytes

        public com.google.protobuf.ByteString getDescriptionBytes()
         A UTF8 encoded text description of the wallet that is intended for end user provided text.
         
        optional string description = 11;
        Specified by:
        getDescriptionBytes in interface Protos.WalletOrBuilder
        Returns:
        The bytes for description.
      • hasKeyRotationTime

        public boolean hasKeyRotationTime()
         UNIX time in seconds since the epoch. If set, then any keys created before this date are assumed to be no longer
         wanted. Money sent to them will be re-spent automatically to the first key that was created after this time. It
         can be used to recover a compromised wallet, or just as part of preventative defence-in-depth measures.
         
        optional uint64 key_rotation_time = 13;
        Specified by:
        hasKeyRotationTime in interface Protos.WalletOrBuilder
        Returns:
        Whether the keyRotationTime field is set.
      • getKeyRotationTime

        public long getKeyRotationTime()
         UNIX time in seconds since the epoch. If set, then any keys created before this date are assumed to be no longer
         wanted. Money sent to them will be re-spent automatically to the first key that was created after this time. It
         can be used to recover a compromised wallet, or just as part of preventative defence-in-depth measures.
         
        optional uint64 key_rotation_time = 13;
        Specified by:
        getKeyRotationTime in interface Protos.WalletOrBuilder
        Returns:
        The keyRotationTime.
      • getTagsOrBuilderList

        public java.util.List<? extends Protos.TagOrBuilder> getTagsOrBuilderList()
        repeated .wallet.Tag tags = 16;
      • getTagsOrBuilder

        public Protos.TagOrBuilder getTagsOrBuilder​(int index)
        repeated .wallet.Tag tags = 16;
      • parseFrom

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

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

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

        public static Protos.Wallet 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.Wallet parseFrom​(byte[] data)
                                       throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

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

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

        public static Protos.Wallet 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.Wallet,​Protos.Wallet.Builder>
      • getDefaultInstance

        public static Protos.Wallet getDefaultInstance()
      • parser

        public static com.google.protobuf.Parser<Protos.Wallet> parser()