Skip to main content

Method Signature

Parameters

string
required
The encrypted wallet JSON string (keystore format)
string
required
The password used to encrypt the wallet

Returns

string
The wallet’s public address
string
The decrypted private key

Examples

Load from File

Encryption/Decryption Flow

Decryption can take several seconds as it’s intentionally slow (using scrypt) to prevent brute-force attacks.

Encrypt Private Key

Encrypt a wallet

Create Wallet

Create new wallet