Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

py-shardeum-explorer-0.0.3.tar.gz (3.4 kB view hashes)

Uploaded Source

Built Distribution

py_shardeum_explorer-0.0.3-py3-none-any.whl (3.8 kB view hashes)

Uploaded Python 3

Supported by

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