ChainCash - Crypto payments library for BEP20
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file chaincash-0.1.1.tar.gz.
File metadata
- Download URL: chaincash-0.1.1.tar.gz
- Upload date:
- Size: 9.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2ee8e9f163ec056b79cef580e95639b590614ede2fdb79176efc5cd34f908559
|
|
| MD5 |
37f05e4e128c81bbd685d10cbcee611c
|
|
| BLAKE2b-256 |
40cd5e1243437169bdd6ebbdd2e6d1b978856e436769d1d181e6eb5fbda612fa
|
File details
Details for the file chaincash-0.1.1-py3-none-any.whl.
File metadata
- Download URL: chaincash-0.1.1-py3-none-any.whl
- Upload date:
- Size: 11.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
de8d213ea1891bccd735378cecb6ce13c001f84d3badbc76e467b3c70ab0ce94
|
|
| MD5 |
e20f61a5d02ce0699e245996ac9ffa6d
|
|
| BLAKE2b-256 |
9a4439fb1b5fc5ac1e3535fb7493b6ea52dd3927c8ed560797e414b7307aae58
|