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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file py-shardeum-explorer-0.0.2.tar.gz.
File metadata
- Download URL: py-shardeum-explorer-0.0.2.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d1357ee5ddfe60b51ddd5672db36b02b22d113968567060e6870b1724cf36da9
|
|
| MD5 |
a272a543ec523cb1587488639ca5f735
|
|
| BLAKE2b-256 |
6ddbb743bfea9c2dec24abf65e99f8a55890130f01d9c95ddb400095ab657458
|
File details
Details for the file py_shardeum_explorer-0.0.2-py3-none-any.whl.
File metadata
- Download URL: py_shardeum_explorer-0.0.2-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
625a96ada82c81057fddb6a6fee1dcec8fbfa056a944a4d1391fb9d9f49be3ef
|
|
| MD5 |
730ca7f2872945863ecd9e346afe2b02
|
|
| BLAKE2b-256 |
b476aecd98b44e0e5bd301623b4dd16cbfcd564d915c4ec9d6e9c4673974f6ee
|