counterparty-lib
is the reference implementation of the Counterparty Protocol.
Note: for the command-line interface, see counterparty-cli
.
For a simple Docker-based install of the Counterparty software stack, see this guide.
Download the newest patched Bitcoin Core and create
a bitcoin.conf
file with the following options:
rpcuser=bitcoinrpc
rpcpassword=rpc
server=1
txindex=1
addrindex=1
rpcthreads=100
rpctimeout=300
Then, download and install counterparty-lib
:
$ git clone https://github.com/CounterpartyXCP/counterparty-lib.git
$ cd counterparty-lib
$ python3 setup.py install
Followed by counterparty-cli
:
$ git clone https://github.com/CounterpartyXCP/counterparty-cli.git
$ cd counterparty-cli
$ python3 setup.py install
Then, launch the daemon via:
$ counterparty-server bootstrap
$ counterparty-server --backend-password=rpc start
Further command line options are available via:
$ counterparty-server --help
$ counterparty-client --help
Bare usage from Python is also possible, without installing counterparty-cli
:
$ python3
>>> from counterpartylib import server
>>> db = server.initialise(<options>)
>>> server.start_all(db)
- TravisCI is setup to run all tests with 1 command and generate a coverage report and let
python-coveralls
parse and upload it. It does runs with--skiptestbook=all
so it will not do the reparsing of the bootstrap files. - CircleCI is setup to split the tests as much as possible to make it easier to read the error reports.
It also runs the
integration_test.test_book
tests, which reparse the bootstrap files.