Skip to main content

Method Signature

Parameters

EncryptedWallet
required
The encrypted wallet data object
string
required
The password used for encryption

Returns

Returns the full Wallet object with address, private key, and mnemonic.

Examples

Decryption will fail if the wrong password is provided. Handle errors appropriately.

Encrypt Wallet

Encrypt a wallet

Create from Encrypted

Alternative decryption