Skip to main content

bp-btc-com

A python 3 api wrapper for btc.com block explorer. Forked from psqnt/btc-com

docs: https://github.com/qlbnb/btc-com/blob/master/docs.md

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

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

Install

pip install bp-btc-com

must be python3 so if not in a python3 virtualenv use

pip3 install bp-btc-com

Usage

import datetime

from bp_btc_com.explorer import Explorer
from time import sleep

sleep_time = .5  # don't overstep rate limits
# get latest block
print(Explorer("btc").get_block())
sleep(sleep_time)

print(Explorer("bch").get_block())
sleep(sleep_time)

print(Explorer("bsv").get_block())

Examples

https://github.com/qlbnb/btc-com/blob/master/examples.py

Common Issues

API changes may break the sdk. Please refer to the official btc.com api documentation and update accordingly.

'https://chain.api.btc.com/v3/'
'https://bch-chain.api.btc.com/v3/'
'https://bsv-chain.api.btc.com/v3/'

Metadata

Release files for bp-btc-com 0.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bp-btc-com 0.0.5
File Size Uploaded Provenance Actions
bp-btc-com-0.0.5.tar.gz 4.4 kB Without provenance Details for bp-btc-com-0.0.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for bp-btc-com 0.0.5
File Interpreter ABI Platform Actions
bp_btc_com-0.0.5-py3-none-any.whl Python 3 none any Details for bp_btc_com-0.0.5-py3-none-any.whl

Total release size: 9.9 kB

Release files / bp-btc-com-0.0.5.tar.gz

Download URL bp-btc-com-0.0.5.tar.gz
Size 4.4 kB
Tags Source
SHA-256 checksum
How to use checksums
2e8448dceadc346b6a287f615126caffd10a1f4f2b06794af89bc74fbae67f6d
BLAKE2b-256 checksum
How to use checksums
e34bdfb640fd490f18073e9508d603f4a33e89c951c4be0328d26ff2b234e1bd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5

Release files / bp_btc_com-0.0.5-py3-none-any.whl

Download URL bp_btc_com-0.0.5-py3-none-any.whl
Size 5.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b38b3a105f974a698de9547ba8cc3ebb4c57fd22d8b68129c066ca4e0fce3484
BLAKE2b-256 checksum
How to use checksums
758e3e4f9de945aab004b981978082b3fe3722172d457d958efef6a559f992eb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5

Security for bp-btc-com 0.0.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page