Whatsonchain API.
Project description
Examples
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
Whatsonchain for their hard work on the Whatsonchain API
Donate
If you have found this library useful, please consider donating. Every little bit helps.
HandCash: $AustEcon
1PdvVPTzXmo4cSs68HctLUxAdW917UZtC8
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
whatsonchain-0.0.3.tar.gz
(3.2 kB
view details)
File details
Details for the file whatsonchain-0.0.3.tar.gz
.
File metadata
- Download URL: whatsonchain-0.0.3.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.7.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f98cd08cbbae65df5e22e3a8b4de84d7d15f8032c29c51afd7521b7f4de41b3 |
|
MD5 | d0ba45505b39b13d9c5318688d2cbb20 |
|
BLAKE2b-256 | d378a134bc01f33215f0cf1f3d8a6cb1542cc0f9d5e2c31a27195d243c180a47 |