Learn R Programming

gethr (version 0.1.0)

personal_importRawKey: New account creation giving the private key.

Description

personal_importRawKey imports the given unencrypted private key (hex string) into the key store, encrypting it with the passphrase.

Usage

personal_importRawKey(keydata, password)

Arguments

keydata

Data - Message that has been signed.

password

String - Password of the account.

Value

Address - Address of the new account.

See Also

Other personal functions: gethr, personal_ecRecover, personal_listAccounts, personal_lockAccount, personal_newAccount, personal_sign, personal_unlockAccount

Examples

Run this code
# NOT RUN {
personal_importRawKey('a5e3d0b2bb3011d00a139e5cdc4ae13144962752d6af7916bf2b
d271a240094e', 'password')
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab