smsgimportprivkey - Particl RPC

smsgimportprivkey "privkey" ( "label" )

Adds a private key (as returned by dumpprivkey) to the smsg database.

The imported key can receive messages even if the wallet is locked.

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

Examples:

Dump a private key
> particl-cli dumpprivkey "myaddress"

Import the private key
> particl-cli smsgimportprivkey "mykey"

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


This is a website, created out of frustration with uncomplete and outdated Particl Core RPC documentation online.

Particl version: 0.16.0.1

Note that the RPC is from a regtest node (for completeness), so it includes some additional calls that a regular node doesn't have.


Anon






Mnemonic