How to do qtum staking in ubuntu linux.

in #qtum6 years ago

In this document, I handle that how to staking 'qtum' in ubuntu server.

Run 'uname -a' in shell prompt to check your OS environment.

001_uname_-a.jpg

Program download

First, download 'QTUM' (not means coin) as your PC environment.

I downloaded qtum-0.14.10-x86_64-linux-gnu.tar.gz (https://github.com/qtumproject/qtum/releases/download/mainnet-ignition-v1.1.4/qtum-0.14.10-x86_64-linux-gnu.tar.gz)

In Ubuntu, you can download it as below command.

wget https://github.com/qtumproject/qtum/releases/download/mainnet-ignition-v1.1.4/qtum-0.14.10-x86_64-linux-gnu.tar.gz

002_wget_download_qtum.jpg

Extract tar

tar -xvf qtum-0.14.10-x86_64-linux-gnu.tar.gz

003_tar_xvf_qtum.jpg

Execute qtumd with background option.

cd qtum-0-14.10/bin
./qtumd &

Run ps command to check process is fine.

ps

004_qtumd_background.jpg

Check block size

waiting about 10 minutes for sync.

./qtum-cli getinfo

005_getinfo.jpg

You have to compare "blocks" with below site's Block Hight.

https://explorer.qtum.org/

If it's not same, wait few minutes and re-check ./qtum-cli getinfo or check your firewall and port forwading config.

007_explorer_qtum_org.jpg

Make password your wallet.

./qtum-cli encryptwallet "password_yourself"

When you enter above command, Qtum server will stop. So, you have to restart it.

./qtumd &

And check process by ps command.

You MUST check your password was input correctly.

./qtum-cli walletpassphrase "password_yourself" 5

If password was input correctly, there is no messages. But, password is not correct, below error will be occurred.

WARNING
If you delete wallet.dat file, qtum coin also will be deleted.

You can reset your password by delete ~/.qtum/wallet.dat file.

008_set_password.jpg

Backup wallet.dat file.

If you complete set password, Backup ~/.qtum/wallet.dat file.

This is ESSENTIAL of QTUM wallet. You can recover wallet anywhere (windows, phone, ETC.) to use wallet.dat file.

unlock wallet to staking.

If you want to withdraw or staking QTUM, you should unlock wallet.

Deposit QTUM is not necessary to unlock.

You can use this command to unlock your QTUM wallet.

WARNING
With this command, you should input three contents.

./qtum-cli -stdin walletpassphrase

  1. 1st line: PASSWORD
  2. 2nd line: Unlocking period (seconds. ex. 99999999)
  3. 3rd line: true or false
    • true: For Staking
    • false: For Staking and Widthrawal

After you input three contents, type "CTRL + D" to finish.

Now, check unlocked_until status again.

./qtum-cli getwalletinfo

You can see the unlocked_until status has been changed.

009_unlock_and_getwaletinfo.jpg

If you want to LOCK, use below command.

./qtum-cli walletlock

Set ACCOUNT ADDRESS.

./qtum-cli getaccountaddress "ACCOUNT NAME"

ex) ./qtum-cli getaccountaddress "my_qtum_wallet"

You can see your account address.

If you lost your account address, dont' worry.

You can check your account name.

./qtum-cli listaccounts

Then, you can check your account address.

./qtum-cli getaccountaddress "ACCOUNT NAME"

010_account_address.jpg

Staking

Now, you are ready to stake.

Staking will be occured after 500 blocks when you get QTUM from other wallet.

You can check your transaction block on https://explorer.qtum.org with your wallet address.

Bottom of the page, you can check how many CONFIRMATIONS is occured with your asseet.

Your staking will be started when after 500 CONFIRMATIONS. Then, you see staking status be changed to true by ./qtum-cli getstakinginfo command.

Command set

cd ~
wget https://github.com/qtumproject/qtum/releases/download/mainnet-ignition-v1.1.4/qtum-0.14.10-x86_64-linux-gnu.tar.gz
tar -xvf qtum-0.14.10-x86_64-linux-gnu.tar.gz
cd qtum-0-14.10
cd bin
./qtumd &
/* waiting about 10 minutes /
./qtum-cli getinfo
/
go to page - https://explorer.qtum.org /
./qtum-cli encryptwallet "password_yourself"
./qtumd &
./qtum-cli walletpassphrase "password_yourself" 5
/
check password is set correctly /
./qtum-cli -stdin walletpassphrase
/

PASSWORD
99999999
true
*/ CTRL + D to exit

Sort:  

Congratulations @lazyrodi! You have completed some achievement on Steemit and have been rewarded with new badge(s) :

You got a First Vote

Click on any badge to view your own Board of Honor on SteemitBoard.
For more information about SteemitBoard, click here

If you no longer want to receive notifications, reply to this comment with the word STOP

By upvoting this notification, you can help all Steemit users. Learn how here!

Coin Marketplace

STEEM 0.30
TRX 0.12
JST 0.034
BTC 63877.55
ETH 3143.56
USDT 1.00
SBD 3.97