/counterparty-lib

Counterparty Protocol Reference Implementation

Primary LanguagePLpgSQLMIT LicenseMIT

Build Status Travis Build Status Circle Coverage Status Latest Version License Slack Status

Description

counterparty-lib is the reference implementation of the Counterparty Protocol.

Note: for the command-line interface that used to be called counterpartyd, see counterparty-cli.

Requirements

  • Patched Bitcoin Core with the following options set:

     rpcuser=bitcoinrpc
     rpcpassword=<password>
     server=1
     txindex=1
     addrindex=1
     rpcthreads=1000
     rpctimeout=300
     minrelaytxfee=0.00005
     limitfreerelay=0
    

Installation

$ git clone https://github.com/CounterpartyXCP/counterparty-lib.git
$ cd counterparty-lib
$ python3 setup.py install

Usage

$ python3
>>> from counterpartylib import server
>>> db = server.initialise(<options>)
>>> server.start_all(db)

Further Reading