API wrapper for blockstream block explorer
Project description
blockstream
A python 3 wrapper class for blockstream.info's Bitcoin block explorer API
Written in Python 3
Docs: https://github.com/pasquantonio/blockstream/blob/master/docs.md
Block explorer: https://blockstream.info
API Reference: https://github.com/Blockstream/esplora/blob/master/API.md
Install
pip install blockstream
if not in a python3 virtualenv make sure to use python3
pip3 install blockstream
Also install requests (until I figure out how to make it automatically include this)
pip install requests
Usage
from blockstream import blockexplorer
# get transaction by id
tx_id = '56a5b477182cddb6edb460b39135a3dc785eaf7ea88a572052a761d6983e26a2'
tx = blockexplorer.get_transaction(tx_id)
# get address data
address = '1Bgut7QkwZS6pGyCi6CHeFkNN4Z5DzGP7P'
addr_info = blockexplorer.get_address(address)
Examples
Reference examples.py to see each method in use
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
blockstream-0.0.7.tar.gz
(4.2 kB
view hashes)
Built Distribution
Close
Hashes for blockstream-0.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 179d2ab0fa84f2bc89fe3575ff6f560ff92104161852051c75852afbde930feb |
|
MD5 | 6fc67e5f9aea25c759d7b2affa45474c |
|
BLAKE2b-256 | eb94d15047b7a588bd3c720179929ebf4f015d94553365ed2e21f22aa2c1f3dd |