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/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/'
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.4.tar.gz
(4.0 kB
view hashes)
Built Distribution
Close
Hashes for bp_btc_com-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b81900dc40c35e96c2040e17fc2575c77d242b3efce46744040388f0fe655bc7 |
|
MD5 | 180d37a7c2fa94a74459b0db9b2616f8 |
|
BLAKE2b-256 | 6f18dccbc4081d388345da5dcaae62a63203d891c589ba725d960776de57bbea |