A minimal, complete, python API for Shardeum Explorer.
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. 🚧
Report Issues here