Bitcoin Forum
May 03, 2024, 11:22:10 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Warning: One or more bitcointalk.org users have reported that they strongly believe that the creator of this topic is a scammer. (Login to see the detailed trust ratings.) While the bitcointalk.org administration does not verify such claims, you should proceed with extreme caution.
Pages: [1]
  Print  
Author Topic: How to install & use counterparty/XCP client (hand by hand) w/ pictures?  (Read 3247 times)
520Bit (OP)
Sr. Member
****
Offline Offline

Activity: 602
Merit: 252



View Profile
February 06, 2014, 04:10:03 PM
Last edit: February 07, 2014, 01:06:47 AM by 520Bit
 #1

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://bitcointalk.org/index.php?topic=395761.0
Counterparty/XCP FAQs: https://counterparty.co/faqs/
**************************************************************************************************
**************************************************************************************************
Accept BTC/XCP/MSC: 152oBitoBwHwxR5UpUQnsvWSFjYHkheDJk
My Weibo: http://weibo.com/520Bit
XCP QQ Group: 234641592
**************************************************************************************************
1714778530
Hero Member
*
Offline Offline

Posts: 1714778530

View Profile Personal Message (Offline)

Ignore
1714778530
Reply with quote  #2

1714778530
Report to moderator
1714778530
Hero Member
*
Offline Offline

Posts: 1714778530

View Profile Personal Message (Offline)

Ignore
1714778530
Reply with quote  #2

1714778530
Report to moderator
Even if you use Bitcoin through Tor, the way transactions are handled by the network makes anonymity difficult to achieve. Do not expect your transactions to be anonymous unless you really know what you're doing.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714778530
Hero Member
*
Offline Offline

Posts: 1714778530

View Profile Personal Message (Offline)

Ignore
1714778530
Reply with quote  #2

1714778530
Report to moderator
Anotheranonlol
Hero Member
*****
Offline Offline

Activity: 588
Merit: 504


View Profile
February 06, 2014, 04:33:58 PM
 #2

Great write-up. Thanks for taking the time to submit detailed guide. should be helpful to new users.

Matt Y
Hero Member
*****
Offline Offline

Activity: 647
Merit: 510


Counterpartying


View Profile WWW
February 07, 2014, 09:38:24 AM
 #3

Well done. Thank you.

peled1986
Legendary
*
Offline Offline

Activity: 882
Merit: 1002


View Profile
February 08, 2014, 05:44:12 PM
 #4

great work.
thank you for your time.
kdrop22
Full Member
***
Offline Offline

Activity: 238
Merit: 100


View Profile
February 09, 2014, 07:15:43 PM
 #5

good
Wit22
Member
**
Offline Offline

Activity: 103
Merit: 10


View Profile
February 10, 2014, 02:18:49 AM
 #6

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?
520Bit (OP)
Sr. Member
****
Offline Offline

Activity: 602
Merit: 252



View Profile
February 11, 2014, 03:29:10 AM
 #7

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.
prophetx
Legendary
*
Offline Offline

Activity: 1666
Merit: 1010


he who has the gold makes the rules


View Profile WWW
February 19, 2014, 06:12:17 PM
 #8

good job
wizzardTim
Legendary
*
Offline Offline

Activity: 1708
Merit: 1000


Reality is stranger than fiction


View Profile
April 06, 2014, 05:44:58 PM
 #9

An error is shown: GMP or MPIR library not found!!!
Unable to find vcvashall.bat

(win7 64bit)

Behold the Tangle Mysteries! Dare to know It's truth.

- Excerpt from the IOTA Sacred Texts Vol. I
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!