importprivkey Method
Imports the private key to the wallet.
[!Note]
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.
Example
Request body:
Response body:
Response description:
Returns the address corresponding to the key.