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.2.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

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

py_shardeum_explorer-0.0.2-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

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

Hashes for py-shardeum-explorer-0.0.2.tar.gz
Algorithm Hash digest
SHA256 d1357ee5ddfe60b51ddd5672db36b02b22d113968567060e6870b1724cf36da9
MD5 a272a543ec523cb1587488639ca5f735
BLAKE2b-256 6ddbb743bfea9c2dec24abf65e99f8a55890130f01d9c95ddb400095ab657458

See more details on using hashes here.

File details

Details for the file py_shardeum_explorer-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for py_shardeum_explorer-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 625a96ada82c81057fddb6a6fee1dcec8fbfa056a944a4d1391fb9d9f49be3ef
MD5 730ca7f2872945863ecd9e346afe2b02
BLAKE2b-256 b476aecd98b44e0e5bd301623b4dd16cbfcd564d915c4ec9d6e9c4673974f6ee

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