getdevicepublickey - Particl RPC

getdevicepublickey "path" ("accountpath")
Get the public key and address at "path" from a hardware device.

Arguments:
1. "path"              (string, required) The path to derive the key from.
                           The full path is "accountpath"/"path".
2. "accountpath"       (string, optional) Account path, set to empty string to ignore (default="m/44h/1h/0h").

Result
{
  "publickey"        (string) The derived public key at "path".
  "address"          (string) The address of "publickey".
  "path"             (string) The full path of "publickey".
}

Examples
Get the first public key of external chain:
> particl-cli getdevicepublickey "0/0"
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getdevicepublickey", "params": ["0/0"] }' -H 'content-type: text/plain;' http://127.0.0.1:51935/
Get the first public key of internal chain of testnet account:
> particl-cli getdevicepublickey "1/0" "44h/1h/0h"


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