CLI

How to run Particl-cli

Hi dear Friends,
this is my little guide for you all to activate staking on Linux ARM.
first of all download the official ARM Package for Raspberry here:

https://github.com/particl/particl-core/releases/tag/v0.15.1.1

if you done with this you need to open a terminal

STRG+ALT+T

then you need to switch to the folder where the particl-cli is located at. Which should be /Downloads/particl-0.15.1.0/bin/ (depends where you extracted the file)
(if your are in home you need type cd Downloads then cd particl-0.15.1.0 then again cd into bin then run following commands.

 

If you created your wallet elsewhere, you can easily import it by issuing extkeygenesisimport. You will be asked for your mnemonic (or Recovery Phrase) and your Passphrase (if you have any):

$ particl-cli extkeygenesisimport
Please enter a mnemonic or private extkey and press return:
diamond aisle such opera uncover rebuild cabbage enrich defense assault grab acid
Please enter passphrase, leave blank for none:
my secret passphrase
{
  "result": "Success.",
  "master_id": "xFzvsp3aK1yLCfQSnc2ebbD58FkBU19Q7t",
  "master_label": "Master Key",
  "account_id": "aVUZpKcrZV3pXMbbjJg1P6FxWx6cp72P5T",
  "account_label": "Default Account",
  "note": "Please backup your wallet."
}

You should then encrypt your wallet:

$ ./particl-cli encryptwallet "<your long passphrase>"
wallet encrypted; Particl server stopping, restart to run with encrypted wallet. You need to make a new backup.

You’ll need to start the particld daemon again:

$ ./particld -daemon
Particl server starting

As this is your dedicated staking device, you want to stake your coins. Let’s unlock your wallet for staking only.

Tip: start this command with a special symbol “ it won’t be saved to your command history (another security measure):

$  ./particl-cli walletpassphrase "<your long passphrase>" 0 true

Few notes:

  • if your passphrase contain spaces, be sure to wrap the whole passphrase in quotes
  • 0 is number of seconds for which the wallet should be unlocked (0 = forever)
  • true at the end is for staking only

Then make another backup, just in case:

$ ./particl-cli backupwallet <destination of backup>

Eg.: for saving your wallet.dat in the home directory, you would enter ./particl-cli backupwallet ~/particl-backup.dat

 

Thanks to the team member Allien for providing the necessary Information !