Brief Guide: Setting Up Mainnet Wallet - Airdop Included - With Basic Commands - Os Neutral

Discussion in 'Technical Support' started by anondran, Feb 8, 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, Feb 8, 2016
    Last edited: Feb 8, 2016
    Hello everyone,
    It is with great excitement that I write this guide for Mainnet public launch which goes live at 12:00CST( - 6 hours GMT). This guide is a fork of my testnet guide, and written in a similar way. I assume people with no prior experience in testnet would be really curious to get their hands on this. So, no matter your geek level, this guide should help keep you covered. :)
    Must Read before continuing further: Thanks to @davecgh https://forum.decred.org/threads/de...rent-usernames-passwords-and-passphrases.428/
    Longish post ahead,

    >DELETING YOUR TESTNET WALLET:
    1) Incase if you had created a Testnet wallet and want to setup your mainnet wallet now, you can just delete it. Go to 'Users/Appdata/Local' and delete 'dcrd,dcrwallet.dcrctl' these files.

    >DOWNLOADING THE BINARIES:
    2)Download your Operating System specific binaries(files) from the github page. Make sure to know if your system is 32-bit(x86) or 64-bit(x64).

    >OPENING THE BINARIES:

    3) Open this with either Winrar or 7-Zip archiver using the provided 'Password' and extract it to a folder. Inside the folder there will be five files namely dcrd, dcrwallet, dcrrpcclient, dcrutil, dcrctl. Turning off the anti-virus is recommended.

    4)Inside the folder where the 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. ConEmu is a better cmd terminal for Windows users.

    >SETTING UP YOUR WALLET:

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

    dcrd -u user -P pass

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

    6) 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

    PLEASE VISIT THE IMGUR ALBUM CONTAINING STEP BY STEP PROCEDURES IN PICTURE: https://imgur.com/a/CaJ4M


    HIGHLY IMPORTANT:
    >IMPORTING AIRDROP SEED INTO YOUR WALLET:

    This is for the 3244 people who successfully registered for the Airdrop and got a confirmation. You would be receiving 282 Decreds which would be locked until 256 blocks( according to @jy-p). Those who do not have a seed, can create a new seed by entering 'NO' when it asks if you want to add an existing seed.

    • <>Command window will ask to input a private passphrase for your wallet. While entering, the passphrase would look blank, but actually you are typing.So, please pay attention. Do not forget this.
      • <>Confirm by typing it again.
        • <>Now, it asks if you want to add an additional encryption layer for public data. Say 'yes'.T0pe the public passphrase and confirm by typing again. Do not forget this. It looks blank as well.
          • <>Next, when it asks if you have an existing wallet seed, enter 'yes' and type the 33-word text carefully, as such, without any mistakes and case errors.
            <> It would now say, The wallet is successfully created.

    7)Next step, type the following command,

    dcrwallet -u user -P pass --walletpass publicpassphrase --dcrdusername=user --dcrdpassword=pass

    Replace 'user' and 'pass' with username and password and publicpassphrase with the publickey you entered in the previous step.

    >GETTING A NEW ADDRESS:
    8)After the above step is completed successfully, type the following in a new command window.

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

    >UNLOCKING THE WALLET:

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

    dcrctl -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. If you want to unlock your wallet forever, enter the value as '0'.
    NOTE:Receiving funds does not need your wallet to be unlocked. So, this step can be skipped if you are just receiving.


    >RECEIVING COINS:

    10)To receive Decred coins, share your address with the sender so he may send the coins to you. Ideally, itt is recommended to use a new address everytime you receive coins.

    >LISTING THE TRANSACTIONS:

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

    dcrctl -u user -P pass --wallet listtransactions
    This will show you the sent or received transctions, the amount, txid(transactionid), etc.

    >KNOWING YOUR BALANCE:

    12) To know the balance of your wallet, the command is

    dcrctl -u user -P pass --wallet getbalance
    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:

    13.)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 -u user -P pass --wallet sendtoaddress DseXaMpLeadDreSS 10
    In the above string replace 'DseXaMpLeadDreSS' 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).
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    PoW Mining will be updated soon.Stay tuned. Any further edits and/or corrections will be made.
     
    muckle, Scott Briggs, zero and 3 others like this.
  2. naPS

    naPS New Member

    Jan 9, 2016
    21
    4
    Male
    If I used the airdrop seed, should I still get a new address?
     
  3. sambiohazard

    sambiohazard Sr. Member

    Jan 21, 2016
    844
    372
    i would say its not necessary but recommended, as it will be easy to keep track of what amount was mined & what is from airdrop etc.
     
  4. bolbativvi

    bolbativvi New Member

    Jan 21, 2016
    26
    2
    Male
    the same
     
  5. anondran

    anondran Full Member
    Advocate (Reddit)

    Jan 13, 2016
    131
    119
    Male
    It worked for me, but I don't know if I made a mistake. Maybe @davecgh could help
     
  6. anondran

    anondran Full Member
    Advocate (Reddit)

    Jan 13, 2016
    131
    119
    Male
    Airdrop Guys,
    You can see your tx via --wallet listtransactions and remember --wallet getbalance takes about 256 blocks to show the 282 Decreds
     
  7. sambiohazard

    sambiohazard Sr. Member

    Jan 21, 2016
    844
    372
    yup got it already :)
     
  8. ay-p

    ay-p Full Member
    Developer

    Dec 7, 2015
    148
    106
    Male
    What commands are you running for dcrd and dcrwallet?
     
  9. bolbativvi

    bolbativvi New Member

    Jan 21, 2016
    26
    2
    Male
    -4: the client was never connected
     
  10. bolbativvi

    bolbativvi New Member

    Jan 21, 2016
    26
    2
    Male
    what is wrong?
     
  11. sinister

    sinister New Member

    Dec 28, 2015
    2
    0
    Male
    IT
    Reykjavík
    I had this error before: [ERR] DCRW: invalid passphrase for master public key with public key

    Found info on some comment that I needed these two files:
    ../Dcrwallet/dcrwallet.conf:
    username=yourusername
    password=yourpassword
    ../Dcrd/dcrd.conf:
    rpcuser=youruser
    rpcpass=yourpass

    I think they are not supposed to have the same password.

    However, for almost an hour now I've had these messages every few minutes: [INF] WLLT: Connecting block 00000000000108c09b9e76a118a9c230e95314a2.....

    Is this is normal? if so it might be useful info for the guide as well.

    Hope this helps.
     
  12. anvoice

    anvoice Member

    Dec 22, 2015
    229
    78
    Male
    Your wallet is trying (unsuccessfully) to connect to your daemon. Not sure why this is happening, as I get the same error.

    The good news is that you can still mine like that, and this issue will hopefully be resolved soon.
     
  13. sambiohazard

    sambiohazard Sr. Member

    Jan 21, 2016
    844
    372
    if wallet is connecting blocks regularly then it means things are working & both daemon & wallet are updating.
     
  14. monkey

    monkey New Member

    Feb 8, 2016
    1
    0
    Male
    Where does one find out their privkey it's not mentioned anywhere in the guide
     
  15. Lee Sharp

    Lee Sharp Sr. Member

    Dec 28, 2015
    308
    217
    Male
    Independent Consultant
    Houston, Texas
    You picked it when you created the wallet. You had to, as it would not allow a blank key. (Yes, I tried) The public key was optional.
     
  16. s515_15

    s515_15 New Member

    Feb 8, 2016
    2
    1
    did your public passphrase have spaces in it when you created it? If so you need to use "this is my passphrase" if that's the case
     
  17. rohit pawar

    rohit pawar Member
    Advocate (Reddit)

    Dec 26, 2015
    166
    87
    Male
    India
    -4: Request requires a wallet but wallet has not loaded yet

    whats wrong?
     
  18. bogdan

    bogdan New Member

    Dec 28, 2015
    6
    1
    Hi,

    I have the same problem, did you managed to find a solution for it?
     
  19. s515_15

    s515_15 New Member

    Feb 8, 2016
    2
    1
    use quotation marks around your passphrase
     
    bogdan likes this.
  20. bogdan

    bogdan New Member

    Dec 28, 2015
    6
    1
    It worked, thanks!
     

Share This Page