Skip to main content

Function Signature

Description

Sets the password to be used for password-based backup and recovery operations. This should be called before using backupWallet or recoverWallet with the password method.
The backupWallet and recoverWallet methods automatically call setPassword if a password is provided, so you typically don’t need to call this directly.

Parameters

Returns

void

Example

Typical Usage

Most commonly, you’ll pass the password directly to the backup/recovery methods:

Errors