-
public final class PersistableWalletRepresents everything needed to save and restore a wallet.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classPersistableWallet.Companion
-
Field Summary
Fields Modifier and Type Field Description private final ZcashNetworknetworkprivate final LightWalletEndpointendpointprivate final BlockHeightbirthdayprivate final SeedPhraseseedPhraseprivate final WalletInitModewalletInitMode
-
Constructor Summary
Constructors Constructor Description PersistableWallet(ZcashNetwork network, LightWalletEndpoint endpoint, BlockHeight birthday, SeedPhrase seedPhrase, WalletInitMode walletInitMode)
-
Method Summary
Modifier and Type Method Description final ZcashNetworkgetNetwork()final LightWalletEndpointgetEndpoint()final BlockHeightgetBirthday()final SeedPhrasegetSeedPhrase()final WalletInitModegetWalletInitMode()final <ERROR CLASS>toJson()StringtoString()final StringtoSafeString()This is a safe alternative for the regular toString function that prints only non-sensitive parts -
-
Constructor Detail
-
PersistableWallet
PersistableWallet(ZcashNetwork network, LightWalletEndpoint endpoint, BlockHeight birthday, SeedPhrase seedPhrase, WalletInitMode walletInitMode)
- Parameters:
network- the network in which the wallet operatesendpoint- the endpoint with which the wallet communicatesbirthday- the birthday of the walletseedPhrase- the seed phrase of the walletwalletInitMode- required parameter with one of WalletInitMode values.
-
-
Method Detail
-
getNetwork
final ZcashNetwork getNetwork()
-
getEndpoint
final LightWalletEndpoint getEndpoint()
-
getBirthday
final BlockHeight getBirthday()
-
getSeedPhrase
final SeedPhrase getSeedPhrase()
-
getWalletInitMode
final WalletInitMode getWalletInitMode()
-
toJson
final <ERROR CLASS> toJson()
-
toSafeString
final String toSafeString()
This is a safe alternative for the regular toString function that prints only non-sensitive parts
-
-
-
-