Package org.bitcoinj.wallet
Interface Protos.WalletOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
- All Known Implementing Classes:
Protos.Wallet,Protos.Wallet.Builder
- Enclosing class:
- Protos
public static interface Protos.WalletOrBuilder
extends com.google.protobuf.MessageLiteOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionA UTF8 encoded text description of the wallet that is intended for end user provided text.com.google.protobuf.ByteStringA UTF8 encoded text description of the wallet that is intended for end user provided text.optional .wallet.ScryptParameters encryption_parameters = 6;optional .wallet.Wallet.EncryptionType encryption_type = 5 [default = UNENCRYPTED];getExtension(int index) repeated .wallet.Extension extension = 10;intrepeated .wallet.Extension extension = 10;repeated .wallet.Extension extension = 10;getKey(int index) repeated .wallet.Key key = 3;intrepeated .wallet.Key key = 3;repeated .wallet.Key key = 3;longUNIX time in seconds since the epoch.com.google.protobuf.ByteStringThe SHA256 hash of the head of the best chain seen by this wallet.intThe height in the chain of the last seen block.longoptional int64 last_seen_block_time_secs = 14;the network used by this walletcom.google.protobuf.ByteStringthe network used by this walletgetTags(int index) repeated .wallet.Tag tags = 16;intrepeated .wallet.Tag tags = 16;repeated .wallet.Tag tags = 16;getTransaction(int index) repeated .wallet.Transaction transaction = 4;intrepeated .wallet.Transaction transaction = 4;repeated .wallet.Transaction transaction = 4;intThe version number of the wallet - used to detect wallets that were produced in the future (i.e.getWatchedScript(int index) repeated .wallet.Script watched_script = 15;intrepeated .wallet.Script watched_script = 15;repeated .wallet.Script watched_script = 15;booleanA UTF8 encoded text description of the wallet that is intended for end user provided text.booleanoptional .wallet.ScryptParameters encryption_parameters = 6;booleanoptional .wallet.Wallet.EncryptionType encryption_type = 5 [default = UNENCRYPTED];booleanUNIX time in seconds since the epoch.booleanThe SHA256 hash of the head of the best chain seen by this wallet.booleanThe height in the chain of the last seen block.booleanoptional int64 last_seen_block_time_secs = 14;booleanthe network used by this walletbooleanThe version number of the wallet - used to detect wallets that were produced in the future (i.e.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
hasNetworkIdentifier
boolean hasNetworkIdentifier()the network used by this wallet
required string network_identifier = 1;- Returns:
- Whether the networkIdentifier field is set.
-
getNetworkIdentifier
String getNetworkIdentifier()the network used by this wallet
required string network_identifier = 1;- Returns:
- The networkIdentifier.
-
getNetworkIdentifierBytes
com.google.protobuf.ByteString getNetworkIdentifierBytes()the network used by this wallet
required string network_identifier = 1;- Returns:
- The bytes for networkIdentifier.
-
hasLastSeenBlockHash
boolean hasLastSeenBlockHash()The SHA256 hash of the head of the best chain seen by this wallet.
optional bytes last_seen_block_hash = 2;- Returns:
- Whether the lastSeenBlockHash field is set.
-
getLastSeenBlockHash
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;- Returns:
- The lastSeenBlockHash.
-
hasLastSeenBlockHeight
boolean hasLastSeenBlockHeight()The height in the chain of the last seen block.
optional uint32 last_seen_block_height = 12;- Returns:
- Whether the lastSeenBlockHeight field is set.
-
getLastSeenBlockHeight
int getLastSeenBlockHeight()The height in the chain of the last seen block.
optional uint32 last_seen_block_height = 12;- Returns:
- The lastSeenBlockHeight.
-
hasLastSeenBlockTimeSecs
boolean hasLastSeenBlockTimeSecs()optional int64 last_seen_block_time_secs = 14;- Returns:
- Whether the lastSeenBlockTimeSecs field is set.
-
getLastSeenBlockTimeSecs
long getLastSeenBlockTimeSecs()optional int64 last_seen_block_time_secs = 14;- Returns:
- The lastSeenBlockTimeSecs.
-
getKeyList
List<Protos.Key> getKeyList()repeated .wallet.Key key = 3; -
getKey
repeated .wallet.Key key = 3; -
getKeyCount
int getKeyCount()repeated .wallet.Key key = 3; -
getTransactionList
List<Protos.Transaction> getTransactionList()repeated .wallet.Transaction transaction = 4; -
getTransaction
repeated .wallet.Transaction transaction = 4; -
getTransactionCount
int getTransactionCount()repeated .wallet.Transaction transaction = 4; -
getWatchedScriptList
List<Protos.Script> getWatchedScriptList()repeated .wallet.Script watched_script = 15; -
getWatchedScript
repeated .wallet.Script watched_script = 15; -
getWatchedScriptCount
int getWatchedScriptCount()repeated .wallet.Script watched_script = 15; -
hasEncryptionType
boolean hasEncryptionType()optional .wallet.Wallet.EncryptionType encryption_type = 5 [default = UNENCRYPTED];- Returns:
- Whether the encryptionType field is set.
-
getEncryptionType
Protos.Wallet.EncryptionType getEncryptionType()optional .wallet.Wallet.EncryptionType encryption_type = 5 [default = UNENCRYPTED];- Returns:
- The encryptionType.
-
hasEncryptionParameters
boolean hasEncryptionParameters()optional .wallet.ScryptParameters encryption_parameters = 6;- Returns:
- Whether the encryptionParameters field is set.
-
getEncryptionParameters
Protos.ScryptParameters getEncryptionParameters()optional .wallet.ScryptParameters encryption_parameters = 6;- Returns:
- The encryptionParameters.
-
hasVersion
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];- Returns:
- Whether the version field is set.
-
getVersion
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];- Returns:
- The version.
-
getExtensionList
List<Protos.Extension> getExtensionList()repeated .wallet.Extension extension = 10; -
getExtension
repeated .wallet.Extension extension = 10; -
getExtensionCount
int getExtensionCount()repeated .wallet.Extension extension = 10; -
hasDescription
boolean hasDescription()A UTF8 encoded text description of the wallet that is intended for end user provided text.
optional string description = 11;- Returns:
- Whether the description field is set.
-
getDescription
String getDescription()A UTF8 encoded text description of the wallet that is intended for end user provided text.
optional string description = 11;- Returns:
- The description.
-
getDescriptionBytes
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;- Returns:
- The bytes for description.
-
hasKeyRotationTime
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;- Returns:
- Whether the keyRotationTime field is set.
-
getKeyRotationTime
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;- Returns:
- The keyRotationTime.
-
getTagsList
List<Protos.Tag> getTagsList()repeated .wallet.Tag tags = 16; -
getTags
repeated .wallet.Tag tags = 16; -
getTagsCount
int getTagsCount()repeated .wallet.Tag tags = 16;
-