A python binding for Multichain Json-RPC API
Project description
# multichaincli
[![CircleCI](https://circleci.com/gh/chainstack/multichaincli/tree/master.svg?style=svg)](https://circleci.com/gh/chainstack/multichaincli/tree/master)
[![PyPI version](https://badge.fury.io/py/multichaincli.svg)](https://badge.fury.io/py/multichaincli)
_python binding for Multichain, supports version 2_
## Description
Its heavy based on [python-bitcoinrpc](https://github.com/jgarzik/python-bitcoinrpc) and [Savoir](https://github.com/DXMarkets/Savoir) but adapted for Multichain server, and replacing the httplib by [requests](http://docs.python-requests.org/en/master/)
## Installation
multichaincli can be installed from
[PyPi](https://pypi.python.org/pypi) using
[pip](https://pypi.python.org/pypi/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](http://www.multichain.com/developers/json-rpc-api/) and make calls to the wrapper.
Remember to replace the rpc variables with the information of your specific chain
```python
from multichaincli import Multichain
rpcuser = 'multichainrpc'
rpcpasswd = 'YoUrLoNgRpCpAsSwOrD'
rpchost = 'localhost'
rpcport = '22335'
chainname = 'myChain'
mychain = Multichain(rpcuser, rpcpasswd, rpchost, rpcport, chainname)
mychain.getinfo()
```
[![CircleCI](https://circleci.com/gh/chainstack/multichaincli/tree/master.svg?style=svg)](https://circleci.com/gh/chainstack/multichaincli/tree/master)
[![PyPI version](https://badge.fury.io/py/multichaincli.svg)](https://badge.fury.io/py/multichaincli)
_python binding for Multichain, supports version 2_
## Description
Its heavy based on [python-bitcoinrpc](https://github.com/jgarzik/python-bitcoinrpc) and [Savoir](https://github.com/DXMarkets/Savoir) but adapted for Multichain server, and replacing the httplib by [requests](http://docs.python-requests.org/en/master/)
## Installation
multichaincli can be installed from
[PyPi](https://pypi.python.org/pypi) using
[pip](https://pypi.python.org/pypi/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](http://www.multichain.com/developers/json-rpc-api/) and make calls to the wrapper.
Remember to replace the rpc variables with the information of your specific chain
```python
from multichaincli import Multichain
rpcuser = 'multichainrpc'
rpcpasswd = 'YoUrLoNgRpCpAsSwOrD'
rpchost = 'localhost'
rpcport = '22335'
chainname = 'myChain'
mychain = Multichain(rpcuser, rpcpasswd, rpchost, rpcport, chainname)
mychain.getinfo()
```
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
multichaincli-1.1.0.tar.gz
(2.8 kB
view details)
Built Distribution
File details
Details for the file multichaincli-1.1.0.tar.gz
.
File metadata
- Download URL: multichaincli-1.1.0.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: Python-urllib/3.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d86ae059dee5a20722daa18105b408009396f47289f10624e78ceaeb96503350 |
|
MD5 | 0d0f267507c22a9f41abfb79a35e0c14 |
|
BLAKE2b-256 | c2337370171256571ac78974a6c0b0bc314d065e195e398b6f3d96074da48b36 |
File details
Details for the file multichaincli-1.1.0-py3-none-any.whl
.
File metadata
- Download URL: multichaincli-1.1.0-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: Python-urllib/3.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 52b9accfdbad5d34c5fb381691b696da568fa7a79357c2681dabdee2f80a7658 |
|
MD5 | 344cccde4e6af18b49fadfd283d69f45 |
|
BLAKE2b-256 | 989f0000ed2bdb1d5550bd355461e34b9079581da52a377b9614916c609fd3f4 |