Skip to content

A Python library for interacting with the PegNetd API

License

Notifications You must be signed in to change notification settings

pegnet/pegnet-py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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}

About

A Python library for interacting with the PegNetd API

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages