Particl-cli on ARM (Raspberry Pi, Pine64, etc)

Particl comes with ARM build, which allows it to run on Pi.

First we'll have to download latest wallet (for ARM architecture - particl-<version>-arm-linux-gnueabihf.tar.gz). The script below determines the latest release and downloads it.

$ curl -s https://api.github.com/repos/particl/particl-core/releases/latest | grep browser_download_url | grep arm-linux-gnueabihf | cut -d '"' -f 4 | wget -i -

Then we have to extract the content

$ tar xvf particl-*

Navigate to the bin(aries).

$ cd particl-*/bin

You can the run the daemon:

$ ./particld -daemon

If you haven't yet created a wallet, you can easily create one by generating a mnemonic (or “Recovery Phrase”) and your Passphrase (optional) by following this guide:

Generate a 24 keyword recovery phase without a passphrase:

$ ./particl-cli mnemonic new
{
  "mnemonic": "this is a twenty four word recovery phrase you need to keep this safe write it down store it somewhere safe as you will need this in order to recover this wallet at a later stage",
  "master": "87f6gd86h78dh7guahsdhg7fgihdjdygfgsd68f5gdgldhDkhgse5uSJTS5ujs8tusjkhsdljhlsdfjlfghu78o"
}

You must save the 24 keyword recovery phrase in order to recover this wallet at a later date

Generate a 24 keyword recovery phase with a passphrase (recommended):

$ ./particl-cli mnemonic new thisismypassphrase
{
  "mnemonic": "this is a twenty four word recovery phrase with a passphrase you need to keep this safe write it down store it somewhere safe as you will need this in order to recover this wallet at a later stage",
  "master": "87f6gd86h78dh7guahglkhfgy8585afygi4huygdgldhDkhgse5uSJTS5ujs8tusjkhsdljhlsdfjlfghu78o"
}

You must save the 24 keyword recovery phrase and passphrase in order to recover this wallet at a later date

Now that you have created a mnemonic recovery phase, you can now import it using extkeygenesisimport :

$ ./particl-cli extkeygenesisimport
Please enter a mnemonic or private extkey and press return:
this is a twenty four word recovery phrase with a passphrase you need to keep this safe write it down store it somewhere safe as you will need this in order to recover this wallet at a later stage
Please enter passphrase, leave blank for none:
thisismypassphrase
{
  "result": "Success.",
  "master_id": "XFMcbGdfkjdglDJDsdfjJSDfudsKGjdsJSdh987f",
  "master_label": "Master Key",
  "account_id": "LJSUfshdf9sl4sSSJf9jsfLsjdhfsIo",
  "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

Now that you've created your default account you can now generate your wallet address:

$ ./particl-cli getnewaddress
PtU6RBvAGr5dT8VZWK4jWZXbPDMQFvqmrm

Now that you've created a new wallet and generated an address you can now receive Particl tokens to this address, therefore feel free to login to your exchange and send your Particl coins to the address above PtU6RBvAGr5dT8VZWK4jWZXbPDMQFvqmrm (this is only an example, do NOT send to this address as it does NOT belong to you).

You can now create a “dedicated staking device”, if you want to stake your Particl coins. Let's unlock your wallet for staking only.

Start the following command, but add a SPACE infront of it that way your password 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