Skip to main content

API wrapper for blockstream block explorer

Project description


A python 3 wrapper class for's Bitcoin block explorer API

Written in Python 3


Block explorer:

API Reference:


pip install blockstream

if not in a python3 virtualenv make sure to use python3

pip3 install blockstream


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)


Reference to see each method in use


the scripthash endpoint seems to be broken, however you can get data about a scripthash address by calling the address endpoint. I have decided to remove the functions to hit the scripthash endpoint for now.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for blockstream, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size blockstream-0.1.0-py3-none-any.whl (5.9 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size blockstream-0.1.0.tar.gz (4.3 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page