ChainCash
🚀 ChainCash — A Python library for building crypto payment solutions on Binance Smart Chain (BEP20).
With ChainCash, you can easily create wallets for your users, monitor deposits (BNB & USDT), and process outgoing transactions asynchronously.
✨ Features
✅ Create unique wallets for each user
✅ Monitor incoming deposits with a callback mechanism
✅ Transfer BNB and USDT tokens
✅ Fully async, built on top of AsyncWeb3
✅ Default support for BSC Mainnet
📦 Installation
Install the package:
pip install chaincash
🔷 Requirements
- Python >= 3.9
Usage/Examples
from chaincash.core.blockchain_client import BlockchainClient
from chaincash.core.wallet_manager import WalletManager
from chaincash.core.monitor import Monitor
from chaincash.core.transfer_service import TransferService
# Initialize blockchain client
client = BlockchainClient()
# Create a wallet
wallet = WalletManager.create_wallet(user_id=1)
print(wallet)
# Monitor deposits
async def on_deposit(event):
print(f"📥 Deposit detected: {event}")
monitor = Monitor(client, address_map={1: wallet.address})
await monitor.start(on_deposit)
# Send BNB
transfer_service = TransferService(client, wallet.private_key)
await transfer_service.send_bnb(to_address="0x...", amount=0.1)
🤝 Contributing
Pull requests and issues are welcome! If you have ideas, improvements, or bug reports — feel free to open a PR or issue. 🌟
Support
For support, email noroozisaeed7@gmail.com.
License
Metadata
Release files for chaincash 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| chaincash-0.1.2.tar.gz | 9.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| chaincash-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 21.3 kB
Release files / chaincash-0.1.2.tar.gz
| Download URL | chaincash-0.1.2.tar.gz |
|---|---|
| Size | 9.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5c99d29c08d634b33c67f0161abbd6c6cc3d20ba518c334a3a30fae4a0fc2d49
|
|
BLAKE2b-256 checksum How to use checksums |
723f518cf79fdb5043dd7be7056fd90db459b0cca5c50a0327ce4bfcd882aa60
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.10
|
Release files / chaincash-0.1.2-py3-none-any.whl
| Download URL | chaincash-0.1.2-py3-none-any.whl |
|---|---|
| Size | 11.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e4c94cd62faaa3759c6fc4fada02c69054d925192746041fb8bcc1b0268b023c
|
|
BLAKE2b-256 checksum How to use checksums |
53f9118288a0839f328359071f2243596976915739db9a2bd8da893787a610d4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.10
|