Savoir
Description
Savoir is JsonRPC wrapper for MultichainIts heavy based on python-bitcoinrpcbut adapted for Multichain server, and replacing the httplib byrequests
Installation
Savoir can be installed fromPyPi usingpip. Enter the following commandinto terminal:
pip install savoir
Alternatively you can clone this public repository by entering the followingcommand into terminal.
git clone https://github.com/dxmarkets/savoir
Usage
Once you've download the code you should install needed libs
sudo pip install -r requirements.txt
Finally just use the multichain api documentacion and make calls to the wrapper.Remember to replace the rpc variables with the information of your specific chain
from Savoir import Savoirrpcuser = 'multichainrpc'rpcpasswd = 'YoUrLoNgRpCpAsSwOrD'rpchost = 'localhost'rpcport = '22335'chainname = 'myChain'api = Savoir(rpcuser, rpcpasswd, rpchost, rpcport, chainname)api.getinfo()
License
This package is distributed under BSD License.See LICENSE