Setup PIVX Wallet and Staking on Raspberry Pi

in #pivx8 years ago

The following is what I have done to setup my wallet and staking it. There is a way to completely do this via cli, however I prefer this way as it more effective and balanced between using GUI (Pivx qt) and cli.
Prerequisites: A fresh Raspbian image should be installed and do update/upgrade for the image to get the latest updates from Raspberrypi.org

  1. Download the latest build for RPi2 wallet binary (https://pivx.org/wallet/). Do not use the RPi3 binary as it is for 64bit OS, it is misleading on the pivx.org website
  2. Extract the binary zip file to your app folder and run pivx-qt
    It will start synching and downloading latest blockchain information and other information. This will take a couple of hours so wait and enjoy your coffee
  3. Once it finishes the synching process, start transferring fund to your wallet, it requires at least 1 Pivx to start staking
  4. Encrypt your wallet using the Pivx qt menu item
  5. Open the Configuration file (can be done via menu item or direct link /home/pi/.pivx/pivx.conf), and add the following (replace with your own password):
    rpcuser=pivxrpc
    rpcpassword=[LONGRANDOMPASSWORD]
    staking=1
  6. Then close your wallet to start using pivx-cli (this is more stable than the pivx-qt, so you can let it run for weeks/months without crashing). Open command line and cd to your Pivx bin folder, for example:
    cd /pivx-2.2.0/bin
  7. Run the wallet using pivxd command
    ./pivxd
  8. Let it run for a few minutes and open another terminal to use pivx-cli commands for staking. The first command to ensure your wallet is running, the second command will unlock your wallet for staking. Use extreme large number for timeout so your wallet will not be locked
    ./pivx-cli getinfo
    ./pivx-cli walletpassphrase [YOUR PASSPHRASE] 999999999 true
  9. Run ./pivx-cli getinfo again in few hours to make sure the staking status is "Staking Active". This is because staking require 101 confirmation.

Enjoy and let me know if any above is incorrect. Hope this helps

Sort:  

Pls note the command executed in linux terminal will be kept in history file, therefore your passphrase maybe at risk. If you want to keep your passphrase out of bash command history, add ; history -d $((HISTCMD-1)) into your command line, so the 2nd command in step 8 should be:
./pivx-cli walletpassphrase [YOUR PASSPHRASE] 999999999 true; history -d $((HISTCMD-1))

Since wallet v2.2.0, staking=1 option is not required, hence you can skip that option in step #5.

thank you very much for the guide!
there is a new version of the wallet and it is mandatory on 21.8. so here the link to the update guide!.
I just did it and all went well. Best thing is, you can set the "unlock time" to 0 so it will be indefinitely unlocked.

I cannot find the "app" folder on my Pi, and it won't run the program from the download folder.

Congratulations @ncao! You received a personal award!

Happy Birthday! - You are on the Steem blockchain for 3 years!

You can view your badges on your Steem Board and compare to others on the Steem Ranking

Do not miss the last post from @steemitboard:

Use your witness votes and get the Community Badge
Vote for @Steemitboard as a witness to get one more award and increased upvotes!

For detail on how much you can earn from staking, visit http://pivx.cryptonode.co

Very good article. Really appreciate you bring this to our attention. The decision to buy a coin should be based on real analysis of the coin. I found that people keep buying coins without have any knowledge of them. This is considered high risk. I really advice people to take a look at: https://www.coincheckup.com Supposingly they researched every crypto coin in the scene based on: the team, the product, advisors, community, the business and the business model. They even score the coins stengths. Check: https://www.coincheckup.com/coins/PIVX#analysis For the PIVX Detailed report.

Congratulations @ncao! You have received a personal award!

1 Year on Steemit
Click on the badge to view your own Board of Honor on SteemitBoard.

Upvote this notificationto to help all Steemit users. Learn why here!

great guide !!!

Congratulations @ncao! You received a personal award!

Happy Birthday! - You are on the Steem blockchain for 2 years!

Click here to view your Board

Vote for @Steemitboard as a witness and get one more award and increased upvotes!