Skip to main content

Python SDK for FullNode of QuoRum

Project description

quorum_fullnode_py

Python SDK for Quorum FullNode.

More about QuoRum:

Install

pip install quorum_fullnode_py

Usage

from quorum_fullnode_py import FullNode

url = "http://127.0.0.1:11002"
jwt = "eyJhbGciO...VCJ9.eyJhbGxvd0...pbiJ9.FeyMWvzweE...o66QZ735nsrU"

# connect to a quorum fullnode with api url and chain jwt_token
client = FullNode(api_base=url, jwt_token=jwt)

# check node_status is online.
client.api.node_info().get("node_status") == "NODE_ONLINE"

# create a group chain for test
info = client.api.create_group("test_group")
client.group_id = info["group_id"]

# send a new post to the group chain
data = {
    "type": "Create",
    "object": {
        "type": "Note",
        "content": "nice to meet u!",
        "name": "hi",
        "id": "efb14f14-f849-4cf3-bcb6-c3598e857adb",
    },
}
resp = client.api.post_content(data)

# get trx from group chain
trx = client.api.trx(resp['trx_id'])

# get content:
trxs = client.api.get_content()

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_fullnode_py-1.3.2.tar.gz (11.7 kB view details)

Uploaded Source

Built Distribution

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

quorum_fullnode_py-1.3.2-py3-none-any.whl (11.8 kB view details)

Uploaded Python 3

File details

Details for the file quorum_fullnode_py-1.3.2.tar.gz.

File metadata

  • Download URL: quorum_fullnode_py-1.3.2.tar.gz
  • Upload date:
  • Size: 11.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for quorum_fullnode_py-1.3.2.tar.gz
Algorithm Hash digest
SHA256 947c107ea7f7c32a08ac75d4e78f58f398e49d86ed5901720d10023c0caf20fc
MD5 6e102b67deb0c78d962edea480380f4a
BLAKE2b-256 7543cf186b2507fb0921d52a25094bfbf9910ac1dc67871a29995e969ad189c6

See more details on using hashes here.

File details

Details for the file quorum_fullnode_py-1.3.2-py3-none-any.whl.

File metadata

File hashes

Hashes for quorum_fullnode_py-1.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 82c7dcd4200718f3c5c05b09b8ab1f675266abb84555106f33ebe749156adb7c
MD5 24123e5f58a2529018f74dbafed07475
BLAKE2b-256 3800ea0ace6ebb7169f0e5e95dcf40f1386187d77e3aa6a0820e282c24966e0a

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