Skip to content
This repository has been archived by the owner on Nov 23, 2019. It is now read-only.


Repository files navigation


Bitcoin Cash Python library

BitcoinPython version Python Versions Build status Code Coverage MIT license


BitcoinPython is so easy to use, in fact, you can do this:

>>> from bitcoinpython import Key
>>> k = Key()
>>> k.address
>>> k.get_balance('usd')
>>> # Let's donate a dollar to
>>> outputs = [
>>>     ('bitcoincash:qz69e5y8yrtujhsyht7q9xq5zhu4mrklmv0ap7tq5f', 1, 'usd'),
>>>     # you can add more recipients here
>>> ]
>>> k.send(outputs)

Done ✅ Here is the transaction:


  • Python's fastest available implementation (100x faster than closest library)
  • Seamless integration with existing server setups
  • Supports keys in cold storage
  • Fully supports 25 different currencies
  • First class support for storing data in the blockchain
  • Deterministic signatures via RFC 6979
  • Exchange rate API, with optional caching
  • Optimal transaction fee API, with optional caching
  • Compressed public keys by default
  • Multiple representations of private keys; WIF, PEM, DER, etc.
  • Standard P2PKH transactions


BitcoinPython is distributed on PyPI and is available on Linux/macOS and Windows with Python 3.5+

$ pip3 install bitcoinpython


Forked from Ofek's Bit and Teran McKinney's bitcash