How to change credentials for wallet?

When creating a new wallet one can set a key for it in the config json:

walletConfig.put("id", walletName);
walletCred.put("key", walletPassword);

How can one change the key afterwards? Unfortunately I didn’t find any methods to do it.

Thanks for clarifying

Hi,

I think the answer you are searching for is something like:

walletConfig.put("id", walletName);
walletCred.put("key", walletPassword);
walletCred.put("rekey", newWalletPassword);

You should use current key as a “key” parameter, and after the wallet is opened with this walletCred json, the key will be changed to the one present in “rekey” parameter.

1 Like

Hey, @dkulic thank you, works great!

1 Like