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.
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.
I was just trying to keep it is minimalistic as possible. And such that works everywhere. Anyways thanks for the suggestion.
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"?
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.
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.
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
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
Tip- don't care about those. If u don't want to go too deep into understanding decred.better not confuse urself
dcrwallet -u user -P pass --walletpass masterkey --enablestakemining --ticketmaxprice=0 is this command is ok because i have no balance ?