BitCash
Bitcoin Cash made easy
Forked from Ofek's awesome Bit library.
BitCash is so easy to use, in fact, you can do this:
>>> from bitcash import Key
>>>
>>> k = Key()
>>> k.address
'bitcoincash:qp0hamw9rpyllkmvd8047w9em3yt9fytsunyhutucx'
>>>
>>> k.get_balance('usd')
'2'
>>>
>>> # Let's donate a dollar to CoinSpice.io
>>> outputs = [
>>> ('bitcoincash:qz69e5y8yrtujhsyht7q9xq5zhu4mrklmv0ap7tq5f', 1, 'usd'),
>>> # you can add more recipients here
>>> ]
>>>
>>> k.send(outputs)
'6aea7b1c687d976644a430a87e34c93a8a7fd52d77c30e9cc247fc8228b749ff'
Done. Here is the transaction: https://explorer.bitcoin.com/bch/tx/6aea7b1c687d976644a430a87e34c93a8a7fd52d77c30e9cc247fc8228b749ff
Features
- Python's fastest available implementation (100x faster than closest library)
- Seamless integration with existing server setups
- Supports keys in cold storage
- Fully supports 29 different currencies
- First class support for storing data in the blockchain
- Deterministic signatures via RFC 6979
- Access to the blockchain (and testnet chain) through multiple APIs for redundancy
- Exchange rate API, with optional caching
- Compressed public keys by default
- Multiple representations of private keys; WIF, PEM, DER, etc.
- Standard P2PKH transactions
- CashToken support (fungible tokens and NFTs)
- Real-time address subscriptions via Fulcrum/ElectrumX protocol
If you are intrigued, continue reading. If not, continue all the same!
Installation
BitCash is distributed on PyPI as a universal wheel and is available on Linux/macOS
and Windows and supports Python 3.9+.
pip install bitcash # pip3 if pip is Python 2 on your system.
Documentation
Docs are hosted by Github Pages and are automatically built and published after every successful commit to BitCash's master branch.
Release files for BitCash 1.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| bitcash-1.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Release files / bitcash-1.2.1-py3-none-any.whl
| Download URL | bitcash-1.2.1-py3-none-any.whl |
|---|---|
| Size | 83.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2a4b66c3accc0ab61998bff5bb6b854c9f64005a61a759754efd63121d6340b3
|
|
BLAKE2b-256 checksum How to use checksums |
04e3128f11beff789c4fcd0d235f620f1867831949017da89d27f33df548f1f9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.14
|