Skip to main content

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

License

This work is released under the MIT license. A copy of the license is provided in the LICENSE file.

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

quorum_mininode_py-1.3.1.tar.gz (15.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

quorum_mininode_py-1.3.1-py3-none-any.whl (18.0 kB view details)

Uploaded Python 3

File details

Details for the file quorum_mininode_py-1.3.1.tar.gz.

File metadata

  • Download URL: quorum_mininode_py-1.3.1.tar.gz
  • Upload date:
  • Size: 15.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for quorum_mininode_py-1.3.1.tar.gz
Algorithm Hash digest
SHA256 8cc92b25f9a2ac95cf287a035cfa671992c2fffd9c414cb95fec31a05cb9d3da
MD5 28513f60a7533c59582c84e92fa4df32
BLAKE2b-256 e6f3794f97c2d9a63ab5c86985625b26cb8eb55fb7863eb8954b12f8f68d1a9e

See more details on using hashes here.

File details

Details for the file quorum_mininode_py-1.3.1-py3-none-any.whl.

File metadata

File hashes

Hashes for quorum_mininode_py-1.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d1d0eb050e6c754ed4a95141237fdd13939430c56dde2a4e4847e5f66e7eabee
MD5 977cb47d6ae5d18b52e78d51e7f722df
BLAKE2b-256 e06db30e35e2d1cc9dfc77c64e0daa2ec10e90a14b489c6264727cac418820fe

See more details on using hashes here.

Supported by

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