Brief Guide: Setting Up Testnet Wallet, Sending, And Receiving Coins - Os Neutral

Discussion in 'Technical Support' started by anondran, Jan 28, 2016.

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

    anondran Full Member
    Advocate (Reddit)

    Jan 13, 2016
    131
    119
    Male
    #1 anondran, Jan 28, 2016
    Last edited: Feb 5, 2016
    Hello everyone,
    I am jumping straight into the guide. It's easy and simple
    Edit(Intro): Windows OS is covered first.'Conemu' is a better alternative for the stock Windows Cmd terminal. Get Conemu. It supports multiple tabs and an easy Copy-Paste function.
    Commands for Linux at bottom
    :)
    So lets get started, shall we?

    Thanks to @davecgh for clearing up username/password confusion.-->
    https://forum.decred.org/threads/de...rent-usernames-passwords-and-passphrases.428/

    >DOWNLOADING THE BINARIES:


    1). First thing,download the required binaries from the github page. If you use a 32 bit system, download windows-386-20160127-02.zip or if you use a 64 bit system download windows-amd64-20160127-02.zip.

    >OPENING THE BINARIES:

    2.) Open the downloaded zip file using winrar or winzip and extract it to a folder. Inside the folder there will be three .exe files namely dcrd, dcrwallet, dcrctl. Turning off the anti-virus is recommended.

    3.)Inside the folder where the three files are present, hold down shift key and right-click on the empty space and click 'Open Command Window Here'. This will open the command prompt window(or terminal) in this location.

    >SETTING UP YOUR WALLET:

    4.)Now, enter the following on the command window just opened.

    dcrd --testnet -u user -P pass

    ,where 'user' and 'pass' are your desired usernames and passwords. Set up a strong one. Let this terminal run.

    5.) Open a new command window just the same way as above(hold shift and right click on the empty space where the three .exe's are present). To create the wallet, type the following

    dcrwallet --create
    Entering this command will ask 'do you have a seed?'. Since this is testnet, I replied no. Doing this will give you a seed text(a bunch of random words)which you must store in a safe place securely. To copy the seed rightclick that command window, select 'mark' and hold down the text(highlighting) you want to copy and click Enter key on your keyboard. Create a new text document and paste this seed text and save it.

    The window will ask if you want to add another layer of encryption, selecting Yes will prompt you to create a 'private passphrase' and a 'public passphrase'. Do not forget them!

    Edit(5.1):Important: While typing the passphrases, the text will not be displayed and it appears blank. Do not worry as you will be prompted to retype your passphrase. Also, do not think that your keyboard is not working :)


    6.)Next step, type the following command,

    dcrwallet -u user -P pass --walletpass publicpassphrase --dcrdusername=user --dcrdpassword=pass
    Since, I added another layer of encryption on the previous step '--walletpass publicpassphrase' command is added. Replace 'user' and 'pass' with username and password and publicpassphrase with the publickey you entered in the previous step.

    >GETTING A NEW ADDRESS:

    7.).After the above step is completed successfully, type the following on the command window.

    dcrctl --testnet -u user -P pass --wallet getnewaddress
    This will give you a new testnet address which starts with 'Ts'. Be sure to save it as well. You will receive your coins to this address.

    >UNLOCKING THE WALLET:

    8.) In order to send coins to an address, the wallet must be unlocked. To do this,

    dcrctl --testnet -u user -P pass --wallet walletpassphrase test 120
    is the command. Replace 'user' and 'pass' with your username and password. IMPORTANT: Replace 'test' with your 'privatekey'. 120 is the time in seconds the wallet will be unlocked for you to send funds. If you feel this time is small, you can set 300 seconds(5 minutes). After the specified time, your wallet will be locked again.
    NOTE:Receiving funds does not need your wallet to be unlocked. So, this step can be skipped if you are just receiving.


    >RECEIVING COINS:

    9.)To receive testnet coins, you can request for funds in this thread. Devs or someone kind enough will send you coins. 'txid' stands for transaction id.

    >LISTING THE TRANSACTIONS:

    10.) To check your transactions(imagine this as a statement from your bank), type the following command,

    dcrctl --testnet -u user -P pass --wallet listtransactions

    This will show you the sent or received transctions, the amount, txid(transactionid), etc. It may take some time to receive your funds. It took me a maximum of 1 hr for me to receive some coins and as short as a minute. So patience :).This is testnet and results can vary, but mainnet will be stable.

    >KNOWING YOUR BALANCE:

    11.) To know the balance of your wallet, the command is

    dcrctl --testnet -u user -P pass --wallet getbalance
    As I said earlier, your balance might be 0 if there is no confirmation(zero confirmation) when you check using 'listtransactions'. So please wait.

    >SENDING COINS TO AN ADDRESS:

    12.)Perform STEP#8 before doing this step, i.e, wallet should be unlocked. To send coins to an address, the following command is used,

    dcrctl --testnetnow user -P pass --wallet sendtoaddress TseXaMpLeadDreSS 10
    In the above string replace 'TseXaMpLeadDreSS' with the address that you want to send the amount to. And replace '10' with amount that you want to send exactly. Be it 0.5 or 1.2 or some x value. You will be provided with a 'txid' which you can share with the receiver.(Example txid 1f980fa4f603b61efec856b0468185016c37b004767526d5e95131ab08136dc1).

    >DELETING YOUR WALLET:

    If you want to recreate your wallet again, you can just delete it. Go to 'Users/Appdata/Local' and delete 'Decred' related files. Voila!Now, start from Step#1.

    ------------------------------------------------------------------
    >CLOSING IT AND OPENING AGAIN:

    After you have shut down the computer or after you have closed the terminals,say if you want to open the command prompts again, just run STEP 4 AND STEP 6 in two different command windows. Open up a third command window if you want to send, receive, know your balance,etc.
    ------------------------------------------------------------------
    Edit(Linux)
    >COMMANDS FOR LINUX:


    Make sure to download the Linux specific binaries from the github page.

    1) dcrd --testnet -u user -P pass
    2)dcrwallet --create
    3)dcrwallet -u user -P pass --walletpass publicpassphrase --dcrdusername=user --dcrdpassword=pass
    4)dcrctl --testnet -u user -P pass --wallet getnewaddress
    5)dcrctl --testnet -u user -P pass --wallet walletpassphrase test 120
    6)dcrctl --testnet -u user -P pass --wallet listtransactions
    7)dcrctl --testnet -u user -P pass --wallet getbalance
    8)dcrctl --testnet -u user -P pass --wallet sendtoaddress TseXaMpLeadDreSS 10
    -----------------------------------------------------------------------
    P.S:Hope this was helpful and easy to understand. If you have any problems or errors, just hit them below. Myself or anyone will try to solve it.

    Good Luck!
    Have a Nice day :)

    >Reference: https://wiki.decred.org/Quick_Reference

    >Translation:

    1.Spanish(Espanol) Guide: Thanks to @Freemind .----> https://forum.decred.org/threads/breve-guía-configuración-del-wallet-para-testnet-envio-y-recepción-de-monedas-solo-windows.366/
    2. Italian: Thanks to @Blizzy-->
    https://forum.decred.org/threads/guida-testnet-windows.372/

    >Edits:

    5.1 ----------------------------------------->> Thanks to @Larisa for pointingme out to indicate that passphrases look empty when being typed
    COLOR------------------------------------>> Added Yellow Color to commands to improve the readability of the guide.
    Intro--------------------------------------->> The guide was made applicable for both Windows and Linux,'Conemu', was added.
    Linux and Code Optimisation----->> Thanks to @davecgh for suggesting me to use Unix style parameters since it would work on all OS'es and insisting that all flags should go before the command
    Removed Unwanted chars---->Hit the 10,000 limit. So optimized.
    Added Deleting Your Wallet--->Just do this to delete your wallet.
    Removed --notls--->Now that new binaries are released
     
    Jovan, Akai, Rafilsk and 14 others like this.
  2. whis

    whis New Member

    Jan 28, 2016
    59
    7
  3. anondran

    anondran Full Member
    Advocate (Reddit)

    Jan 13, 2016
    131
    119
    Male
  4. whis

    whis New Member

    Jan 28, 2016
    59
    7
    At step 7 when i want to paste dcrctl --testnet -u user -P pass --wallet getnewaddress /notls, it doesnt allow me to, i see nothing in command when i past it.
     
  5. KKopf

    KKopf New Member

    Jan 22, 2016
    41
    3
    Male
    when come the datapage für nvidia chips? i have a 970M GPU
     
  6. anondran

    anondran Full Member
    Advocate (Reddit)

    Jan 13, 2016
    131
    119
    Male
    Try opening up a new command window and type the code.
     
  7. whis

    whis New Member

    Jan 28, 2016
    59
    7
    it says 401 unauthorized.

    should i start all over again? lol
     
  8. anondran

    anondran Full Member
    Advocate (Reddit)

    Jan 13, 2016
    131
    119
    Male
    Seems like there is a mistake in your username or password. Please make sure its correct -P .(remember the capital letter P)
     
  9. anondran

    anondran Full Member
    Advocate (Reddit)

    Jan 13, 2016
    131
    119
    Male
    They will be released soon. Stay tuned. Amd has got the advantage because its more optimized for the Blake 256 algo
     
  10. Neurosploit

    Neurosploit New Member

    Jan 19, 2016
    36
    13
    Male
    .NET Software Engineer
    Amsterdam
    Seems to be running fine! I had some problems with setting up a public key though. I had some special characters in there like quotes and double quotes and I couldn't get that to be accepted in the commandline at step 6.
     
    anondran likes this.
  11. anondran

    anondran Full Member
    Advocate (Reddit)

    Jan 13, 2016
    131
    119
    Male
    Yeah, i had some difficulty there too. A lil tricky part for first-timers.

    Great to hear you're running fine :)
     
  12. Aniara

    Aniara Jr. Member

    Jan 9, 2016
    47
    33
    Female
    Etiennien
    Command line or CLI-wallet operation only is very cumbersome, it need a GUI to become more widely spread.
     
    anondran likes this.
  13. KKopf

    KKopf New Member

    Jan 22, 2016
    41
    3
    Male
    #13 KKopf, Jan 28, 2016
    Last edited: Jan 28, 2016
    yes the config is difficult. now works at me.
     
    anondran likes this.
  14. tacotime

    tacotime Hero Member

    Dec 7, 2015
    410
    1,133
    A native GUI is a number one priority. It will most likely be the first or second request for proposal (RFP) in development funding. I think there's nearly unanimous interest in that. Getting some UX designers involved would be excellent too. Stake voting pools would be another highly interesting endeavour/candidate.

    Do keep in mind that the web wallet will serve as a means to get less technical users involved. However, that is basic and you won't be able to do any stake mining using the web wallet, but you will be able to import a seed, generate a wallet, and send/receive transactions.
     
    anondran likes this.
  15. anondran

    anondran Full Member
    Advocate (Reddit)

    Jan 13, 2016
    131
    119
    Male
    Use the -d switch on cgminer, this allows you to specify which card(s) to use.
     
  16. chadi

    chadi New Member

    Jan 19, 2016
    14
    3
    Male
    How did you resolve this?
     
  17. Oscar Fotaroma

    Oscar Fotaroma Jr. Member
    Advocate (Facebook)

    Jan 16, 2016
    58
    28
    Male
    Finallyyy the guide is hereee !!
    I tried a lot with none worked
     
    anondran likes this.
  18. CrzyTed

    CrzyTed New Member

    Dec 31, 2015
    9
    12
    Male
    Data Analyst
    US-Michigan
    I found this to be an outstanding guide. Thank you, anondran!

    One thing, and I am not sure if this is just something I did incorrectly, on step 5, after entering the command "dcrwallet --create", I was prompted first to create the private and public passphrase, then was asked about the seed.

    [
    Code:
    C:\DECRED>dcrwallet --create
    Enter the private passphrase for your new wallet:
    Confirm passphrase:
    Do you want to add an additional layer of encryption for public data? (n/no/y/yes) [no]: yes
    Enter the public passphrase for your new wallet:
    Confirm passphrase:
    NOTE: Use the --walletpass option to configure your public passphrase.
    Do you have an existing wallet seed you want to use? (n/no/y/yes) [no]: no
    Your wallet generation seed is:
     
    anondran likes this.
  19. anondran

    anondran Full Member
    Advocate (Reddit)

    Jan 13, 2016
    131
    119
    Male
    #19 anondran, Jan 28, 2016
    Last edited: Jan 29, 2016
    Thanks @CrzyTed, nice to hear you got this up and running.
    Since there's no mining part in my guide, I would suggest you to follow sambiohazard's guide
    https://forum.decred.org/threads/guide-how-i-got-my-daemon-wallet-and-miner-running-on-testnet.352/.

    Good Luck!
     
  20. ZomaX

    ZomaX Member
    Designer

    Jan 10, 2016
    84
    57
    Male
    Awesome, I'm in the process of making a testnet wallet right now.
     
    anondran likes this.

Share This Page