Skip to main content

An api wrapper for btc.com block explorer api

Project description

btc-com

A python 3 api wrapper for btc.com block explorer

docs: https://github.com/pasquantonio/btc.com-api-wrapper/blob/master/docs.md

api docs: https://btc.com/api-doc

block explorer: https://btc.com/block

Install

pip install btc-com

must be python3 so if not in a python3 virtualenv use

pip3 install btc-com

Usage

from btc_com import explorer

# get transaction by id
tx_id = '56a5b477182cddb6edb460b39135a3dc785eaf7ea88a572052a761d6983e26a2'
tx = explorer.get_transaction(tx_id)

# get address data
address = '3ADPkym6mQ2HyP7uASh5g3VYauhCWZpczF'
addr_info = explorer.get_address(address)

Examples

examples.py shows multiple examples of calling functions https://github.com/pasquantonio/btc.com-api-wrapper/blob/master/examples.py

Donate

BTC: 3ADPkym6mQ2HyP7uASh5g3VYauhCWZpczF

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

bp-btc-com-0.0.2.tar.gz (4.1 kB view hashes)

Uploaded Source

Built Distribution

bp_btc_com-0.0.2-py3-none-any.whl (5.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page