Python client library for the pegnetd API
Project description
pegnet-py
Still fairly alpha.
Usage
>>> import pegnet_py
>>> pegnetd = pegnet_py.PegNetd()
>>> pegnetd.get_sync_status()
{'syncheight': 62, 'factomheight': 62}
Get PegNet Balances
>>> import pegnet_py
>>> from factom_keys.fct import FactoidAddress
>>> pegnetd = pegnet_py.PegNetd()
>>> address = FactoidAddress(address_string="FA2jK2HcLnRdS94dEcU27rF3meoJfpUcZPSinpb7AwQvPRY6RL1Q")
>>> pegnetd.get_balances(address)
{'PEG': 0, 'pADA': 0, 'pBNB': 0, 'pBRL': 0, 'pCAD': 0, 'pCHF': 0, 'pCNY': 0, 'pDAS': 0, 'pDCR': 0, 'pETH': 0, 'pEUR': 0, 'pFCT': 0, 'pGBP': 0, 'pHKD': 0, 'pINR': 0, 'pJPY': 0, 'pKRW': 0, 'pLTC': 0, 'pMXN': 0, 'pPHP': 0, 'pRVN': 0, 'pSGD': 0, 'pUSD': 0, 'pXAG': 0, 'pXAU': 0, 'pXBC': 0, 'pXBT': 0, 'pXLM': 0, 'pXMR': 0, 'pZEC': 0}
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
pegnet-py-0.0.2.tar.gz
(6.5 kB
view hashes)
Built Distribution
Close
Hashes for pegnet_py-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c92f0eb8dca4de3a471732653c0144742b77617d1ca6bd28e6e52a039a87b60a |
|
MD5 | 1c418d8b440528bb3ca95f8a58952c5a |
|
BLAKE2b-256 | 8da18a499a994fbdcc14d68b657758e350d039e08c5fd1b4bcdcd8c3a7e5e9e0 |