Decentralised micropayment hub for counterparty assets.
Currently only running on testnet,
Install IndieSqaure patched verison of counterparty with micropayment library and subasset patches https://github.com/IndieSquare/counterparty-lib
$ git clone https://github.com/IndieSquare/picopayments-hub.git
$ cd picopayments-hub
$ sudo pip3 install -r requirements.txt
$ sudo python3 setup.py install
$ git clone https://github.com/IndieSquare/picopayments-cli-python.git
$ cd picopayments-cli-python
$ sudo pip3 install -r requirements.txt
$ sudo python3 setup.py install
picopayments-hub --testnet --cp_username=USERNAME --cp_password=PASSWORD --host=0.0.0.0 --cp_url=http://127.0.0.1:14000/api/
access from external network
curl -X POST https://your.hub.url.or.ip:15000/api/ -H 'Content-Type: application/json; charset=UTF-8' -H 'Accept: application/json, text/javascript' -k --data-binary '{ "jsonrpc": "2.0", "id": 0, "method": "mph_status" }'
make sure port 15000 is open on your server
there may be possible conflicts, a common conflict may be the version of pycoin, it can be resolved via calling
pip install pycoin==0.76
See the API documentation if you wish to create apps that interact with picopayment hubs.