zcash-android-wallet-sdk / cash.z.wallet.sdk / Initializer / DefaultBirthdayStore / ImportedWalletBirthdayStore

ImportedWalletBirthdayStore

fun ImportedWalletBirthdayStore(appContext: Context, importedBirthdayHeight: Int?, alias: String = DEFAULT_ALIAS): WalletBirthdayStore

A convenience constructor function for creating an instance of this class to use for imported wallets. It sets the stored birthday to match the given importedBirthdayHeight by finding the highest checkpoint that is below that height.

Parameters

appContext - the application context.

importedBirthdayHeight - the height corresponding to the birthday of the wallet being imported. A checkpoint will be generated that allows scanning to start as close to this height as possible because any blocks before this height can safely be ignored since a wallet cannot have transactions before it is born.

alias - the alias to use when naming the preferences file used for storage.