Skip to content

ouziel-slama/counterpartyws

Repository files navigation

counterpartyws

A simple webserver + HTML GUI for Counterparty

Requirement

  • you must have bitcoind running with txindex=1 and server=1 in config file

OR

Quick install

brew update
brew install sqlite

pip3 install bottle appdirs==1.2.0 prettytable==0.7.2 python-dateutil==2.2 requests==2.1.0 cherrypy==3.2.4 json-rpc==1.1 pycoin==0.25 pytest==2.5.1
pip3 install https://github.com/rogerbinns/apsw/archive/master.zip

git clone --recursive https://github.com/JahPowerBit/counterpartyws.git

python3 counterpartyws.py -h

Run as heavy GUI

You must have bitcoind running. Counterpartyd follows blocks and uses local sqlite database to compose transaction.

screen -S follower
python3 followblocks.py
ctrl+a+d

screen -S counterpartyws
python3 counterpartyws.py
ctrl+a+d

Run as light GUI

You must have pyrpcwallet running and set composer-host and composer-port in config file. Counterpartyws uses distant counterpartyws running as Transactions Composer.

screen -S pyrpcwallet
python3 pyrpcwallet.py
ctrl+a+d

screen -S counterpartyws
python3 counterpartyws.py --light
ctrl+a+d

Run as Transactions composer

You must have bitcoind running.
Used by light counterpartyws to compose transactions.

screen -S follower
python3 followblocks.py
ctrl+a+d

screen -S counterpartyws
python3 counterpartyws.py --composer
ctrl+a+d

Configuration file

OS Path
MacOS ~/Library/Application Support/counterpartyd/counterpartyd.conf
XP C:\Documents and Settings\username\Application Data\counterpartyd\counterpartyd.conf
Vista, 7 C:\Users\username\AppData\Roaming\counterpartyd\counterpartyd.conf
Linux ~/.config/counterpartyd/counterpartyd.conf
[Default]
bitcoind-rpc-connect=192.168.2.254
bitcoind-rpc-port=8332
bitcoind-rpc-user=xxxxx
bitcoind-rpc-password=xxxxx
rpc-password=xxxxx

gui-host=localhost
gui-port=8080
gui-user=xxxxx
gui-password=xxxxx

composer-host=xcpcomposer.jahpowerbit.org
composer-port=8332

Todo

  • add the ability to request several composer server and compare result
  • decode localy the transaction generated by the server
  • write tests

About

Web server for counterpartygui

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages