Skip to content

Latest commit

 

History

History
112 lines (70 loc) · 2.68 KB

decredCMDSETUP.md

File metadata and controls

112 lines (70 loc) · 2.68 KB

Decred CMD Line Setup For Blocknet DX

THANKS TO @86b (Slack) for spending countless hours on this setup!

This setup will gain a resp 200 on the Block DX w/ an error, this is being looked into.


  • Open 3 cmd prompt windows
    • On all 3, change the directory to the source directory:

      cd C:\Users\<NAME>\decred or wherever it was installed

1ST CMD PROMPT WINDOW

  • Type:

    • dcrd --notls --rpcuser=CHANGE --rpcpass=CHANGE --minrelaytxfee=0.01 --rpclisten=127.0.0.1
      • (change rpc user/pass)
  • It will then connect and download the blockchain. Leave this running in the background

2ND CMD PROMPT WINDOW

  • Type: dcrwallet --create

  • Create and enter a password (it wont display anything when you type a password)

  • Type it again to confirm

  • Type n on addition security

  • Type: n on an exisiting wallet

  • Copy your Seed and Hex into a document and save it

  • Type: OK (capital letters)

  • Your wallet should be created successfully!

3RD CMD PROMPT WINDOW

  • Type:

    • dcrwallet --username=CHANGE --password=CHANGE --noclienttls --noservertls --walletpass public --dcrdusername=CHANGE --dcrdpassword=CHANGE --txfee=0.01
      • (enter the same user/pass as the above RPC for both user/pass)
  • Enter your password, it should rescan blocks and eventually connect

  • Leave it running in the background

BACK TO 2ND CMD PROMPT WINDOW

  • Type:

    • dcrctl -u CHANGE -P CHANGE --wallet --notls walletpassphrase <password> 1000000
      • (-u and -P is your user/pass from above)
      • ("password" is your wallet password, but don’t use the <> symbols)
  • It should take you back to the directory

  • Type:

    • dcrctl -u CHANGE -P CHANGE --wallet --notls createnewaccount "testDECRED"
      • (“testDECRED” is what I am calling my labelled address, use the quotation marks and label it whatever you want)
  • It should take you back to the directory

  • Type:

    • dcrctl -u CHANGE -P CHANGE --wallet --notls getnewaddress "testDECRED"
      • (getnewaddress " " is whatever you wrote on the above command for a label)
  • This should output your labelled DCR address

XBRIDGE.conf

  • Go to your xbridge.conf and add this config for DCR:
[DCR]
Title=Decred
Address=DCR ADDRESS
Ip=127.0.0.1
Port=9110
Username=YOUR USERNAME
Password=YOUR PASSWORD
AddressPrefix=7
ScriptPrefix=7
SecretPrefix=34
COIN=100000000
MinimumAmount=0
TxVersion=1
DustAmount=0
CreateTxMethod=BTC
GetNewKeySupported=false
ImportWithNoScanSupported=true
MinTxFee=1000000
BlockTime=150
FeePerByte=1000
  • Run xbridge