An asynchronous library for interacting with various cryptocurrencies and blockchains
Project description
AioTx
AioTx is an asynchronous library for interacting with various cryptocurrencies and blockchains. It aims to provide a lightweight and efficient solution for developers to integrate cryptocurrency functionalities into their projects without relying on heavy dependencies like web3.js or bitcoin-lib. Features
- Asynchronous and non-blocking design for high performance
- Support for multiple cryptocurrencies and blockchains
- Minimal dependencies to keep the library small and fast
- Easy-to-use API for common tasks like wallet creation, balance retrieval, and transaction signing
- Extensible architecture for adding support for new cryptocurrencies and blockchains
Installation
You can install AioTx using pip:
pip install aiotx
Usage
Here's a simple example of how to use AioTx to create a wallet and retrieve its balance:
from aiotx import AioTxBSCClient
bsc_client = AioTxBSCClient(node_url="https://example.com", chain_id=97)
async def main():
# Create a new wallet
address, private_key = bsc_client.generate_address()
# Retrieve the wallet balance
balance = await bsc_client.get_balance(address)
print(f"Wallet balance: {balance}")
# Send BNB
tx_id = await bsc_client.send(private_key, to_address, amount)
print(f"Your tx: {tx_id}")
# Send any token
tx_id = await bsc_client.send_token(private_key, to_address, contract_address, amount)
print(f"Your tx: {tx_id}")
# Run the async main function
asyncio.run(main())
For more detailed usage examples and API reference, please refer to the documentation.
https://grommash9.github.io/aiotx/
Contributing
Contributions to AioTx are welcome! If you find any bugs, have feature requests, or want to contribute improvements, please open an issue or submit a pull request on the GitHub repository.
License
AioTx is open-source software licensed under the MIT 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
File details
Details for the file aiotx-0.6.0.tar.gz
.
File metadata
- Download URL: aiotx-0.6.0.tar.gz
- Upload date:
- Size: 233.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca59bd14c4c34e0ae787cfce30231342d9e4d05964d0feba9995cdfdc06c72b5 |
|
MD5 | f6560f1a3862a46284ea3cdd072bd821 |
|
BLAKE2b-256 | 955a703bd7478b9ea9b9cca0417ae2fcb8fa6a7f798d75485fe57f56e1703d83 |
File details
Details for the file aiotx-0.6.0-py3-none-any.whl
.
File metadata
- Download URL: aiotx-0.6.0-py3-none-any.whl
- Upload date:
- Size: 10.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 471d2d97e7b70f0f1cf05edc427857213b2b098b2abe3ba3a7a5a57df8cbf5ae |
|
MD5 | e7ce55af7fc77ca44363222667030f84 |
|
BLAKE2b-256 | 4b89b89ce8ba0b91fd56b2dfe834b6e5b168c3e8bb01f17ec0d5b13a37749f6a |