dumpprivkey Method
Exports the private key of the specified address.
note
Before you can invoke this method you must:
Install the plugin RpcServer
Call the RPC method
openwalletto open the wallet first.
Parameter Description#
address: To export the addresses of the private key. The address is required as a standard address.
Exception#
- -302, No opened wallet.
Example#
Request body:
{ "jsonrpc": "2.0", "method": "dumpprivkey", "params": ["NepVckSSgHJf1szQ6LEibd5NU7Ap67yJrJ"], "id": 1}Response body:
{ "jsonrpc": "2.0", "id": 1, "result": "L5LEfSAAbVAk5vxmkBpWQqJ2e1hyh3nEqgWaosB35XpBAkZdizj4"}Response Description:
Returns the private key of the standard address.