Pos Guide Any Os - Solo Stake Mining

Discussion in 'Proof-of-stake Mining' started by Ayush, Mar 4, 2016.

  1. 2017/12/15 - Decred v1.1.2 released! → Release Notes  → Downloads
  1. Ayush

    Ayush Full Member
    Advocate (Facebook)

    Jan 9, 2016
    512
    100
    Male
    .
    .
    #1 Ayush, Mar 4, 2016
    Last edited: Apr 3, 2016
    Hello,
    Let me try and explain how POS will work, So u need to have some decred coins to start with. Basically you will buy some tickets with your coins and they will be used to vote. Once your ticket successfully votes you will get a reward (6% of block price).
    Note - For this you will need a stable net connection. It is necessary that your system is connected 24x7. Only then can you hope to earn something.

    I assume you have already set up your wallet, if not check out some guides on the forum.

    So lets begin-

    1)First you need to connect to daemon -
    Command-


    dcrd -u "username" -P "password"


    2)Enabling stake mining-

    There are two ways to purchase tickets. manually and automatically.


    Manual -
    Every time u run this command, a ticket will be bought (provided there are no problems)

    dcrctl -u "username" -P "password" --wallet purchaseticket "default" 20 1

    Here "default" refers to name of account of wallet. If u haven't created any separate accounts, let it remain as such. IT has to be in quotes. ("default") DO NOT CHANGE THAT.
    20 - is max ticket price
    and 1 is the balance to maintain.

    Automated -
    This will buy tickets automatically but u will have to leave the command prompt open for some time.

    dcrwallet -u "username" -P "Password" --walletpass "PublicKey" --enablestakemining --balancetomaintain="x" --ticketmaxprice="y"


    Replace "x" with the amount of money you want to have remaining in your wallet(This is spendable money). Once you buy tickets that money cannot be used for a time period and gets "locked".
    "y" is the maximum amount you are willing to pay per ticket.

    3)Unlocking wallet-
    It is important that your wallet remains unlocked so that it can automatically buy tickets-


    dcrctl -u "username" -P "password" --wallet walletpassphrase "PrivateKey" 0

    Thats it guys. Happy mining.

    4) Checking tickets information -

    dcrctl
    -u "username" -P "password" --wallet getstakeinfo

    5) Full balance (including locked) -

    dcrctl -u "username" -P "password" --wallet getbalance "default" 0 all




    Donations welcome- DsVEQoGBixe7HQuZpHd8FBkvBkaTEZXgyFG
    Hit the like button if this was useful


    Edit- Added command for getting information on tickets.
    Edit 2- Added command to get full balance which includes locked coins
    Edit 3- Added command for manually purchasing tickets.

    Please like the post if u find it useful. :p
     
  2. Grumlin

    Grumlin New Member

    Feb 25, 2016
    43
    1
    Male
    dcrctl -u "username" -P "password" --wallet walletpassphrase "password of wallet" 0
     
  3. Ayush

    Ayush Full Member
    Advocate (Facebook)

    Jan 9, 2016
    512
    100
    Male
    .
    .
    Ooops... Thanks
     
  4. ClokworkGremlin

    ClokworkGremlin Sr. Member

    Jan 10, 2016
    535
    381
    Male
    Whatever I want.
    If you have the option (read: "are not running your wallet in Windows"), I highly suggest splitting this into two parts:
    dcrctl -u "username" -P "password" --wallet --terminal
    [inside terminal] walletpassphrase "password of wallet" 0
    [exit terminal]

    Helps keep your wallet passphrase out of your command history, and the terminal has an option to hide inputs.
     
    Ayush likes this.
  5. Ayush

    Ayush Full Member
    Advocate (Facebook)

    Jan 9, 2016
    512
    100
    Male
    .
    .
    I was just trying to keep it is minimalistic as possible. And such that works everywhere. Anyways thanks for the suggestion.
     
    ClokworkGremlin likes this.
  6. sambiohazard

    sambiohazard Sr. Member

    Jan 21, 2016
    844
    372
    Is terminal command now working on windows? i thought it was not available in windows.
     
  7. Ayush

    Ayush Full Member
    Advocate (Facebook)

    Jan 9, 2016
    512
    100
    Male
    .
    .
    He says any operating system other than windows. Doesn't work for windows right?
     
    sambiohazard likes this.
  8. ClokworkGremlin

    ClokworkGremlin Sr. Member

    Jan 10, 2016
    535
    381
    Male
    Whatever I want.
    That is how I had understood it. I can check later (running from a Linux boot right now).
     
    Ayush likes this.
  9. Toplel

    Toplel New Member

    Mar 5, 2016
    58
    0
    what to put in wallet passphrase? too many pass
     
  10. Ayush

    Ayush Full Member
    Advocate (Facebook)

    Jan 9, 2016
    512
    100
    Male
    .
    .
    #10 Ayush, Mar 10, 2016
    Last edited: Mar 10, 2016
    The private key that U made while creating the wallet.
     
  11. Toplel

    Toplel New Member

    Mar 5, 2016
    58
    0
    dcrctl -u "username" -P "password" --wallet public key "password of wallet" 0? and password of wallet is private key?

    "no connection can be made because the target machine refused it"?
     
  12. Ayush

    Ayush Full Member
    Advocate (Facebook)

    Jan 9, 2016
    512
    100
    Male
    .
    .
    First type the command correctly
    dcrctl -u "username" -P "password" --wallet walletpassphrase "PrivateKey" 0

    Only the text in quotes need to be replaced. Private key is to be entered only if u created one while creating the wallet.
     
  13. Toplel

    Toplel New Member

    Mar 5, 2016
    58
    0
    same error no connection can be made
     
  14. Toplel

    Toplel New Member

    Mar 5, 2016
    58
    0
    ok done, need to run 3 command line and not two that was the problem
     
  15. ClokworkGremlin

    ClokworkGremlin Sr. Member

    Jan 10, 2016
    535
    381
    Male
    Whatever I want.
    There's the chain server password, which you used when you started the server
    Code:
    dcrd -u "dcrd_username" -P "dcrd_password"
    This is used when starting up the wallet so that it can connect to the chain server, and also by dcrctl when connecting to the chain server directly.
    Then there's the wallet server password, which is an optional password used when starting the wallet.
    Code:
    dcrwallet -username "wallet_username" -password "wallet_password" -dcrdusername "dcrd_username" -dcrdpassword "dcrd_password"
    If you didn't specify dcrdusername and dcrdpassword, the wallet will use the same value for both, so it's basically this:
    Code:
    dcrwallet -username "dcrd_username" -password "dcrd_password" -dcrdusername "dcrd_username" -dcrdpassword "dcrd_password"
    Remember: for both dcrd and dcrwallet, -username specifies the username used to connect to this daemon and the password specifies the password used to connect to this daemon. In the above case, if you're using dcrctl to connect to the wallet, you would use wallet_username and wallet_password, and if you're using it to connect to the chain server, you would use dcrd_username and dcrd_password. In the second case, wallet_username and dcrd_username are the same, so you can use the same values for both.
    Finally, there's the encryption password you used when you created your wallet. This is used when (and only when) you unlock your wallet, either to send credits to another address or to open it for staking.

    So in short:
    Chain server username and password
    Wallet server username and password
    Wallet encryption password

    Hopefully this helps clear up some of the confusion.
     
  16. Aatif Nawaz

    Aatif Nawaz New Member

    Dec 21, 2015
    19
    0
    Male
    when i am using start command first there is faster detection and then like this can you tell me is this out put is ok ?



    23:12:37 2016-03-10 [INF] WLLT: Connecting block 000000000000171766faf83d1762933
    e972e2144d53bf5b7e673d541dda1a569, height 9370
    23:22:29 2016-03-10 [INF] WLLT: Connecting block 0000000000002f8916365f7e44f324a
    d8f562ef7dc84923a72465079e58e467f, height 9371
    23:25:41 2016-03-10 [INF] WLLT: Connecting block 000000000000206c24ccc4460299e9e
    646281a10e9062a182727f62f25be7105, height 9372
    23:38:34 2016-03-10 [INF] WLLT: Connecting block 0000000000001ace3e63237fa26aabe
    0456d02a844126c33e4ea1f44009da081, height 9373
     
  17. Ayush

    Ayush Full Member
    Advocate (Facebook)

    Jan 9, 2016
    512
    100
    Male
    .
    .

    Blocks continue forever. You're connected to the network and as new blocks are mined they are relayed. That is what you're seeing as new blocks are mined and show up.

    These aren't tickets. When tickets become available it will show as sstx purchase
     
    Aatif Nawaz and ClokworkGremlin like this.
  18. Aatif Nawaz

    Aatif Nawaz New Member

    Dec 21, 2015
    19
    0
    Male
    but this one so late why is that ?
     
  19. Ayush

    Ayush Full Member
    Advocate (Facebook)

    Jan 9, 2016
    512
    100
    Male
    .
    .
    Tip- don't care about those. If u don't want to go too deep into understanding decred.better not confuse urself
     
  20. Aatif Nawaz

    Aatif Nawaz New Member

    Dec 21, 2015
    19
    0
    Male
    dcrwallet -u user -P pass --walletpass masterkey --enablestakemining --ticketmaxprice=0

    is this command is ok because i have no balance ?
     

Share This Page