Skip to main content

Bitcoin Module for XChainPy Clients

Project description

xchainpy/xchainpy_bitcoin

Bitcoin Module for XChainPy Clients

Modules

  • client - Custom client for communicating with bitcoinlib
  • models - model wrapper for bitcoin required types
  • util - 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.3.tar.gz (7.8 kB view details)

Uploaded Source

Built Distribution

xchainpy_bitcoin-0.1.3-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

Details for the file xchainpy_bitcoin-0.1.3.tar.gz.

File metadata

  • Download URL: xchainpy_bitcoin-0.1.3.tar.gz
  • Upload date:
  • Size: 7.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.5

File hashes

Hashes for xchainpy_bitcoin-0.1.3.tar.gz
Algorithm Hash digest
SHA256 2631211ccf9f9b6c4a85af4e8c13d31a26cfe41a5e227f6f8ac6dc1905a7a5ff
MD5 26072f10ffc6c82be08e0f12cab14e0e
BLAKE2b-256 efe3be73389265db3a081e7cc570798cc859f4c79c3527b9d8d77f923429b575

See more details on using hashes here.

File details

Details for the file xchainpy_bitcoin-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: xchainpy_bitcoin-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 8.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.5

File hashes

Hashes for xchainpy_bitcoin-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 75a29e4c406690ed79d7da68c243b5a2caccc72859080f4cde0baa7a25093e6e
MD5 3ae65ca8066e455ff5f428b93e820af7
BLAKE2b-256 0808e95c35f5faa78d55f6da7a6d765fd2706d5a9e95c3fadea5eb4909d486a2

See more details on using hashes here.

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