Author

Topic: How to install & use counterparty/XCP client (hand by hand) w/ pictures? (Read 3275 times)

legendary
Activity: 1708
Merit: 1000
Reality is stranger than fiction
An error is shown: GMP or MPIR library not found!!!
Unable to find vcvashall.bat

(win7 64bit)
legendary
Activity: 1666
Merit: 1010
he who has the gold makes the rules
sr. member
Activity: 602
Merit: 252
My bitcoin-qt client works and is fully synced but when I run bitcoind - the command line is blank with a flashing underscore ( is it reindexing?).

Does bitcoind have to be working before you install counterpartyd? How can you tell if bitcoind is functioning correctly?

I am running Bitcoin-QT other than Bitcoind. Bitcoin-QT is better to use.
member
Activity: 103
Merit: 10
My bitcoin-qt client works and is fully synced but when I run bitcoind - the command line is blank with a flashing underscore ( is it reindexing?).

Does bitcoind have to be working before you install counterpartyd? How can you tell if bitcoind is functioning correctly?
full member
Activity: 238
Merit: 100
legendary
Activity: 882
Merit: 1002
great work.
thank you for your time.
hero member
Activity: 647
Merit: 510
Counterpartying
Well done. Thank you.
hero member
Activity: 588
Merit: 504
Great write-up. Thanks for taking the time to submit detailed guide. should be helpful to new users.
sr. member
Activity: 602
Merit: 252
How to install & use counterparty/XCP client (hand by hand) w/ pictures?

This tutorial is only tested under Windows7-64bit. Make sure you have your Bitcoind set before go through this tutorial. Check here to see how to set Bitcoind: http://counterpartyd-build.readthedocs.org/en/latest/SettingUpBitcoind.html

Prerequisites (Can also download from http://counterpartyd-build.readthedocs.org/en/latest/BuildingFromSource.html#on-windows)

Download and install all of below softerware. If you are on a computer with a 64-bit version of Windows, it’s normally best to get the 64-bit version of everything below. The only exception would be if you want to create a 32-bit installer for Counterpartyd. In that case, go with the 32-bit versions of all of the dependencies below.

1.Python 3.2.x - grab the 32-bit version: http://www.python.org/ftp/python/3.2.5/python-3.2.5.msi, 64-bit version: http://www.python.org/ftp/python/3.2.5/python-3.2.5.amd64.msi, install to the default C:\Python32 location

2. Python Win32 extensions - grab the 32-bit version: http://sourceforge.net/projects/pywin32/files/pywin32/Build 218/pywin32-218.win32-py3.2.exe/download, 64-bit version: http://sourceforge.net/projects/pywin32/files/pywin32/Build 218/pywin32-218.win-amd64-py3.2.exe/download

3. APSW for Windows - 32-bit version: https[Suspicious link removed], 64-bit version: https[Suspicious link removed]

4. pyzmq for Windows - 32-bit version: https://github.com/downloads/zeromq/pyzmq/pyzmq-2.2.0.win32-py3.2.msi, 64-bit version: https://github.com/downloads/zeromq/pyzmq/pyzmq-2.2.0.win-amd64-py3.2.msi

5. Git for Windows - http://git-scm.com/download/win, Use the default installer options (except, select “Run Git from the Windows Command Prompt” on the appropriate screen)

6. NSIS - http[Suspicious link removed]?download, Please choose the default options during installation, and install to the default path.

7. NSIS SimpleService plugin - Download the NSIS SimpleService plugin from http://git-scm.com/download/win and save the .dll file contained in that zip to your NSIS plugins directory (e.g. C:\Program Files (X86)\NSIS\plugins)

8. cx_freeze - grab the 32-bit version: http://prdownloads.sourceforge.net/cx-freeze/cx_Freeze-4.3.2.win32-py3.2.msi?download, 64-bit version: http://prdownloads.sourceforge.net/cx-freeze/cx_Freeze-4.3.2.win-amd64-py3.2.msi?download

Install counterpartyd client

Now you can install counterpartyd client after you installed all of above software successfully.

1. Press both Windows+R to open the run dialog:



2.Type cmd in the dialog and press Enter:



3. In the command window type cd c:\ , then Enter:



After pressing Enter, you are in the root of C disk now:



4. Type command git clone https://github.com/xnova/counterpartyd_build, then Enter:



5. Type command cd counterpartyd_build, then Enter:



6. Type command C:\Python32\python.exe setup.py, then Enter:



After above six steps, you are installing counterpartyd now, it will take you a few minutes to finish the installing. Here is an screenshot of the installing progress:



If the install process completed without any errors, congratulations, you have installed counterpartyd successfully.

Run counterpartyd client from source

1. Type command cd counterpartyd_build to go to root of counterpartyd_build
2. Type command counterpartyd server, then Enter:



Now your counterpartyd is updating the database, after counterpartyd sync to the latest bitcoin blockchain, you can use the full function of counterpartyd now.

Check the balance(XCP/BTC) of some bitcoin address

1. Open the command window by windows+R->cmd->enter
2. Type command cd c:\counterpartyd_build, then enter to go root of counterpartyd_build. Then type below command:

counterpartyd balances 1xxx (replace 1xxx to the address you want to check)

Take address 1A78faomJwW1p4Nb6b5oR1nFSEp3vDorNX for example:



How to send XCP?

1. Use the same method to go root of counterpartyd_build (cd c:\counterpartyd_build)
2. Type below command at the root of counterpartyd_build:

counterpartyd send --from=1xxx --to=1yyy --quantity=1 --asset=XCP

1xxx is the address you want to send out XCP, 1yyy is the address to receive XCP.

Take address 1BuMkY3wGb2f6axSt528uBfUT54EduDqjZ for example, send 1 XCP to address 12o14Xq4WjJY9SJzYk1NE3aGV8KAxKwmjL:

Type below command at the root of counterpartyd_build:

counterpartyd send --from=1BuMkY3wGb2f6axSt528uBfUT54EduDqjZ --to=12o14Xq4WjJY9SJzYk1NE3aGV8KAxKwmjL --quantity=1 --asset=XCP

Screenshot:



After at least one confirmation, you can check the balances of 12o14Xq4WjJY9SJzYk1NE3aGV8KAxKwmjL:



You can also check the balances of the send address:



How to make an order (Sell 200 XCP at price 0.015 BTC/XCP for example)

1. Make sure you are at root of counterpartyd_build (cd c:\counterpartyd_build)
2. Type below comman and press Enter:

counterpartyd order --from=1BuMkY3wGb2f6axSt528uBfUT54Edu
DqjZ --get-quantity=3 --get-asset=BTC --give-quantity=200 --give-asset=XCP --exp
iration=300 --fee_required=.0001

This command means sell 200 XCP from address 1BuMkY3wGb2f6axSt528uBfUT54Edu at a price of 0.015 BTC/XCP, 1BuMkY3wGb2f6axSt528uBfUT54Edu is also the address to receive BTC. (Note: the address 1BuMkY3wGb2f6axSt528uBfUT54Edu  must have both XCP and BTC balances to make the order).

Screenshot:



After at least confirmation, you can check the order here: http://blockscan.com/order.aspx?q=3248

You can also see the order in the server:



How to check the distributed market of asset (XCP/BTC, or other asset)?

1. Make sure you are at root of counterpartyd_build (cd c:\counterpartyd_build)
2. Type command counterpartyd market, then Enter:



PS: The server command should always be running in the background. All other commands will fail if the index of the last block in the database is less than that of the last block seen by Bitcoind.


**************************************************************************************************
Official website: http://counterparty.co/
Official forum: https://forums.counterparty.co/
Counterparty/XCP announcement: https://bitcointalksearch.org/topic/annxcp-counterparty-pioneering-peer-to-peer-finance-official-thread-395761
Counterparty/XCP FAQs: https://counterparty.co/faqs/
**************************************************************************************************
**************************************************************************************************
Accept BTC/XCP/MSC: 152oBitoBwHwxR5UpUQnsvWSFjYHkheDJk
My Weibo: http://weibo.com/520Bit
XCP QQ Group: 234641592
**************************************************************************************************
Jump to: