importprivkey - Okcash RPC

importprivkey "privkey" ( "label" ) 

Adds a private key (as returned by dumpprivkey) to your wallet. Requires a new wallet backup.

Arguments:
1. "privkey"          (string, required) The private key (see dumpprivkey)
2. "label"            (string, optional, default="") An optional label

Examples:

Dump a private key
> okcashd dumpprivkey "myaddress"

Import the private key 
> okcashd importprivkey "mykey"


As a JSON-RPC call
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "importprivkey", "params": ["mykey", "testing"] }' -H 'content-type: text/plain;' http://127.0.0.1:6969/


Okcash Core RPC documentation.

Okcash version: 5.0.0.3

OK RPC docs at:Github