Bitcoin Module for XChainPy Clients
Project description
xchainpy/xchainpy_bitcoin
Bitcoin Module for XChainPy Clients
Modules
client
- Custom client for communicating with bitcoinlibmodels
- model wrapper for bitcoin required typesutil
- Utitilies for using bitcoinlib and bitcoin chain
Following dependencies have to be installed into your project
bitcoinlib , http3 , xchainpy_client , xchainpy_crypto , xchainpy_util
Service Providers
This package uses the following service providers:
Function | Service | Notes |
---|---|---|
Balances | Sochain | https://sochain.com/api#get-balance |
Transaction history | Sochain | https://sochain.com/api#get-display-data-address, https://sochain.com/api#get-tx |
Transaction details by hash | Sochain | https://sochain.com/api#get-tx |
Transaction fees | bitcoinfees | https://bitcoinfees.earn.com/api/v1/fees/recommended |
Transaction broadcast | Sochain | https://sochain.com/api#send-transaction |
Explorer | Blockstream | https://blockstream.info |
Sochain API rate limits: https://sochain.com/api#rate-limits (300 requests/minute)
Tests
These packages needed to run tests:
- pytest
pip install pytest
- pytest-asyncio
pip install pytest-asyncio
How to run test ?
$ python -m pytest xchainpy/xchainpy_bitcoin/tests/test_bitcoin_clients.py
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
xchainpy_bitcoin-0.1.2.tar.gz
(7.9 kB
view hashes)
Built Distribution
Close
Hashes for xchainpy_bitcoin-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb8f8a18d52d948ae04581273c62d69f74eb61d75b57a0c08e3c16b5311cc4d7 |
|
MD5 | 07d61007ba9f809814a19eb5c0e6f80f |
|
BLAKE2b-256 | 170740bfca933da8292e4f2f8f01aee4307b814d9937a6902eb9e23511a0e200 |