openWalletDB

fun openWalletDB(name: String, chainSelector: ChainSelector? = null): WalletDatabase

Specify the chain to create a wallet DB (otherwise it is loaded from the db). A chain declares create-intent: an unopenable file at name is treated as debris and recreated. With null, open failures throw.


fun openWalletDB(pathAndName: Path, name: String, chainSelector: ChainSelector? = null): WalletDatabase

If you are going to create a wallet DB, you must specify the chain. Otherwise its optional (will be loaded from the db)