本页面使用机器翻译自英语,可能包含错误或不清楚的语言。如需最准确的信息,请参阅英文原文。由于更新频繁,部分内容可能与英文原文有出入。请加入我们在 Crowdin 上的努力,帮助我们改进本页面的翻译。 (Crowdin translation page, Contributing guide)
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
- application/json
Body
Array [
]
params
undefined[]
required
Keydata Keydata (string)
The unencrypted private key (hex string without leading '0x') or a Kaia wallet key.
OldPassphrase OldPassphrase (string)
The passphrase to decrypt the old private key.
NewPassphrase NewPassphrase (string)
The passphrase to encrypt the new private key.