Skip to content

A Python wrapper for MultiChain JSON-RPC API

License

Notifications You must be signed in to change notification settings

chainstack/multichaincli

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

multichaincli

CircleCI PyPI version

python binding for Multichain, supports version 2

Description

Its heavy based on python-bitcoinrpc and Savoir but adapted for Multichain server, and replacing the httplib by requests

Installation

multichaincli can be installed from PyPi using pip. Enter the following command into terminal:

pip install multichaincli

Alternatively you can clone this public repository by entering the following command into terminal.

git clone https://github.com/chainstack/multichaincli

Usage

Once you've download the code you should install needed libs

python setup.py develop

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 multichaincli import Multichain
rpcuser = 'multichainrpc'
rpcpasswd = 'YoUrLoNgRpCpAsSwOrD'
rpchost = 'localhost'
rpcport = '22335'
chainname = 'myChain'

mychain = Multichain(rpcuser, rpcpasswd, rpchost, rpcport, chainname)
mychain.getinfo()

Languages

  • Python 87.8%
  • Makefile 12.2%