Skip to main content

APIs for interacting with the RISE blockchain

Project description

# 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:

```python
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.

```python
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)
```



Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

risesdk-0.8.0.tar.gz (5.9 kB view hashes)

Uploaded Source

Built Distribution

risesdk-0.8.0-py3-none-any.whl (8.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page