Skip to content
Whatsonchain API for python3
Python
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
whatsonchain version 0.0.3 Jun 29, 2019
.gitignore Fix importing. Rename whatsonchain.py --> api.py. Update Readme. Jun 29, 2019
AUTHORS.rst Whatsonchain API Jun 29, 2019
HISTORY.rst Whatsonchain API Jun 29, 2019
LICENSE.txt Whatsonchain API Jun 29, 2019
README.rst Fix importing. Rename whatsonchain.py --> api.py. Update Readme. Jun 29, 2019
setup.py Whatsonchain API Jun 29, 2019

README.rst

Whatsonchain API

Examples

  1. Import whatsonchain and create a 'woc' object for 'main', 'test' or 'stn' networks:
>>> from whatsonchain import Whatsonchain
>>> woc = Whatsonchain(network='test')
>>> woc.get_address_info('mtsCNJGDVgYaVm3je8UpU5nExgiJgkEv6y')
{'address': 'mtsCNJGDVgYaVm3je8UpU5nExgiJgkEv6y',
 'ismine': False,
 'isscript': False,
 'isvalid': True,
 'iswatchonly': False,
 'scriptPubKey': '76a914926db3be60d18dbaac65785b92a150c37bb4146488ac'}

Installation

Whatsonchain is distributed on PyPI as a universal wheel and is available on Linux/macOS and Windows and supports Python 3.5+ pip >= 8.1.2 is required.

$ pip install whatsonchain  # pip3 if pip is Python 2 on your system.

Credits

Donate

  • If you have found this library useful, please consider donating. Every little bit helps.
  • HandCash: $AustEcon
  • 1PdvVPTzXmo4cSs68HctLUxAdW917UZtC8
You can’t perform that action at this time.