importprivkey - Okcash RPC

importprivkey "privkey" ( "label" ) 

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

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


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;'

Okcash Core RPC documentation.

Okcash version:

OK RPC docs at:Github