personal_replaceRawKey
Replaces the encrypted key file in the key store with the given unencrypted private key (hex string without leading '0x') or a Kaia wallet key, encrypting it with the new passphrase. It also receives the old passphrase to decrypt the old private key before replacement. If it is failed to decrypt, or can not find the matching account, it throws an error.
Returns the address of the replaced account if successful.
JSONRPC: personal_replaceRawKey
Request
Responses
- 200
Return the address of the replaced account.