Last modified: 2024-09-23
importprivkey Method
Imports the private key to the wallet.
Before you can invoke this method you must:
Install the plugin RpcServer
Call the RPC method
openwallet
to open the wallet first.
Parameter Description
key: The WIF-format private key.
Exception
-
-302, No opened wallet.
Example
Request body:
Response body:
Response description:
Returns the address corresponding to the key.