a mini python sdk for quorum lightnode with http/https requests to quorum fullnode
Project description
QuoRum LightNode Python SDK
Python SDK for Quorum LightNode, Without local storage.
Another better choice is quorum-lightnode-py, with local storage.
More about QuoRum:
Install
pip install quorum_mininode_py
Usage
from quorum_mininode_py import MiniNode
seed_url = 'rum://seed?v=1&e=0&n=0&c=apzmbMVtMy6J0sQKwhF...2MwHjpA2E'
pvtkey = "0xd4e9ddc19ec5b...d8c"
bot = MiniNode(seed_url,pvtkey)
# post content to rum group chain
data = {
"type": "Create",
"object": {
"type": "Note",
"content": "Hello world! Hello quorum!",
"id": "a1d92233-3801-4295-a3cd-0e594385acc6",
},
}
resp = bot.api.post_content(data)
print(resp)
# like a post
data = {
"type": "Like",
"object": {"type": "Note", "id": "a1d92233-3801-4295-a3cd-0e594385acc6"},
}
resp = bot.api.post_content(data)
print(resp)
# get content from rum group chain
trxs = bot.api.get_content(num=2, reverse=True)
print(trxs)
Source
- quorum fullnode sdk for python: https://github.com/liujuanjuan1984/quorum-fullnode-py
- quorum data module for python: https://github.com/liujuanjuan1984/quorum-data-py
- and more.. https://github.com/okdaodine/awesome-quorum
License
This work is released under the MIT
license. A copy of the license is provided in the LICENSE file.
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
quorum_mininode_py-1.3.3.tar.gz
(15.1 kB
view hashes)
Built Distribution
Close
Hashes for quorum_mininode_py-1.3.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fea9fe3d386b89315d4eaafb6c9fb75cb147257f8cdb8bc20ce6ac23f57b7702 |
|
MD5 | 35367360daecbc0c29994d0e8a40db4b |
|
BLAKE2b-256 | 3d8520001b157b5aa277720987d67ea6bf554d676cb1228a7d4a36d2f85ed01a |