API written in Python to interact with the RISE blockchain
Switch branches/tags
Nothing to show
Clone or download
Latest commit 761bcb2 Jul 10, 2018
Permalink
Failed to load latest commit information.
risesdk Update for pip release Jul 10, 2018
.gitignore Rise SDK Sep 6, 2017
README.md Update for pip release Jul 10, 2018
requirements.txt Rise SDK Sep 6, 2017
setup.py Update for pip release Jul 10, 2018

README.md

RISE SDK (Python)

Python library that provides APIs for interfacing with the RISE blockchain.

Getting started

The simplest way to get started is to use pip to install this library:

pip install risesdk

Usage examples

All the APIs are designed to be easy to use. All request results are returned as dictionaries.

Every API method can be accessed via single RiseAPI object:

from risesdk import RiseAPI

# In production you should use your own node, as there are no stability
# guarantees for the public wallet node at wallet.rise.vision
api = RiseAPI('https://wallet.rise.vision')

block_height = api.blocks.get_height()['height']
version = api.peers.version()['version']

print(block_height, version)

Working with multiple nodes

In some cases you need to connect to multiple nodes.

from risesdk import RiseAPI

api1 = RiseAPI('http://node1:5566')
api2 = RiseAPI('http://node2:5566')

version1 = api1.peers.version()
version2 = api2.peers.version()

print(version1, version2)