A minimal, complete, python API for Shardeum Explorer.
Project description
py-shardeum-explorer
A minimal, complete, python API for Shardeum Explorer.
Usage
Install the package from PyPi
pip install py-shardeum-explorer
To use it in your code, import the py-shardeum-explorer module:
from shardeumexplorer import ShardeumExplorer
shmexp = ShardeumExplorer("Liberty") // currently it supports the only alphanet
- To View Balance of a Specific Address. It returns the value (in SHM)
shmexp.get_account_balance("0x822429119D53055fB11E69213613851ba28bd888")
- To View Balance of a Multiple Address. It returns a dictionary where the key is an address and its corresponding value is its balance.
shmexp.get_account_balance_multiple(["0x822429119D53055fB11E69213613851ba28bd888","0x73155b7350C500Abd7235d42695F01ff4307a4fa"])
- To View Total Accounts Existing in the Network.
shmexp.total_accounts()
Note: This package is still nascent and might be broken with continuous updates on the network. More functionalities will be added to the package soon. Work In Progress. 🚧
Found Issues/Bugs?
Report Issues here
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
Built Distribution
Close
Hashes for py-shardeum-explorer-0.0.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 69ecd0944d3400018af7543d55dba0e2a7602779ea0b47d443d41be57fb0b642 |
|
MD5 | c516b558e70a1634fef22ce877ad95d7 |
|
BLAKE2b-256 | f07545687713c5f7a048af7f9c760fa10963ed893303fed9e4f6ccb528733fff |
Close
Hashes for py_shardeum_explorer-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 39d18262262b3d3ea13dd84a0b0675001a3c26cdcf72e79d265e250164d7fe29 |
|
MD5 | 5a4331d15fd82f8bca695f2a1d68e955 |
|
BLAKE2b-256 | 3a9a83bc96e9cf1e43cd8f8e722e0d878849642e898bc505ed2db30759dbc3b5 |