extkeygenesisimport - Particl RPC

extkeygenesisimport "mnemonic/key" ( "passphrase" save_bip44_root master_label account_label scan_chain_from )
Import master key from bip44 mnemonic root key and derive default account.
Derives an extra chain from path 444444 to receive imported coin.

Arguments:
1. "mnemonic/key"          (string, required) The mnemonic or root extended key.
       Use '-stdin' to be prompted to enter a passphrase.
       if mnemonic is blank, defaults to '-stdin'.
2. "passphrase":           (string, optional) passphrase when importing mnemonic - default blank.
       Use '-stdin' to be prompted to enter a passphrase.
3. save_bip44_root:        (bool, optional) Save bip44 root key to wallet - default false.
4. "master_label":         (string, optional) Label for master key - default 'Master Key'.
5. "account_label":        (string, optional) Label for account - default 'Default Account'.
6. scan_chain_from:        (int, optional) Scan for transactions in blocks after timestamp - default 1.

Examples:
> particl-cli extkeygenesisimport -stdin -stdin false "label_master" "label_account"
> particl-cli extkeygenesisimport "word1 ... word24" "passphrase" false "label_master" "label_account"
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "extkeygenesisimport", "params": ["word1 ... word24", "passphrase", false, "label_master", "label_account"] }' -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