Skip to main content

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

async def main():
    bsc_client = AioTxBSCClient(node_url="https://example.com", chain_id=97)
    
    # Create a new wallet
    address, private_key = await bsc_client.generate_address()
    
    # Retrieve the wallet balance
    balance = await bsc_client.get_balance(address)
    print(f"Wallet balance: {balance}")

    # Send transaction
    tx_id = await bsc_client.send_transaction(private_key, to_address, amount, gas_price, gas_limit)
    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.

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aiotx-0.3.0.tar.gz (192.6 kB view details)

Uploaded Source

Built Distribution

aiotx-0.3.0-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

Details for the file aiotx-0.3.0.tar.gz.

File metadata

  • Download URL: aiotx-0.3.0.tar.gz
  • Upload date:
  • Size: 192.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.19

File hashes

Hashes for aiotx-0.3.0.tar.gz
Algorithm Hash digest
SHA256 79b61a7321604f0f231bc322c44e7bb8cfb558afa1072e64b35413fe62fa0a92
MD5 cfbc52b25456142f456e5c5dd2a5b46a
BLAKE2b-256 50d955adbc7d0327a44032f2f0ee6c7822238c0133618408da150f7efbc2202f

See more details on using hashes here.

File details

Details for the file aiotx-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: aiotx-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 7.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.19

File hashes

Hashes for aiotx-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 757102e0ffe87dddfe1b760e7862fb95b5b2befc07e969ba2cbfcc9f1e21b077
MD5 dea459be34af47a9cef615247130c5f7
BLAKE2b-256 adf9b708da0daafeeaab5c9c44c76f610e03db72d737e2c0701c63f6cd5d2afb

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page