initaccountfromdevice - Particl RPC

initaccountfromdevice ("label" "path" makedefault scan_chain_from)
Initialise an extended key account from a hardware device.

Arguments:
1. "label"             (string, optional) A label for the account.
2. "path"              (string, optional) The path to derive the key from (default="m/44h/1h/0h").
                           The full path is "accountpath"/"path".
3. makedefault           (bool, optional) Make the new account the default account for the wallet (default=true).
4. scan_chain_from       (int, optional) Timestamp, scan the chain for incoming txns only on blocks after time (default=0).
5. initstealthchain      (bool, optional) Prepare the account to generate stealthaddresses (default=true).
                           The hardware device will need to sign a fake transaction to use as the seed for the scan chain.

Result
{
  "extkey"           (string) The derived extended public key at "path".
  "path"             (string) The full path used to derive the account.
}

Examples
> particl-cli initaccountfromdevice "new_acc" "44h/1h/0h" false
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "initaccountfromdevice", "params": ["new_acc"] }' -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