Bitcoin Forum

Bitcoin => Project Development => Topic started by: Grommash9 on May 04, 2024, 11:04:11 AM



Title: AioTx - simple python crypto library
Post by: Grommash9 on May 04, 2024, 11:04:11 AM
Hello! I am working in crypto a lot and a lot of times I writing the same code for get balance, send transactions, block monitoring, etc.

So I decided I have skills for create my library for interact with different blockchains.

The idea is to not use web3 or analogs and just call the node, and also make same interface for all networks

Now I have done ETH and BSC, I will do UTXO client next so BTC and LTC should be ready soon too.

You can install my library by command `pip install aiotx`

Here is url for documentation:
https://grommash9.github.io/aiotx/

Here is source code url:
https://github.com/Grommash9/aiotx

I am not a master in writing so I will just attach a screenshots of how you can use my library and maybe you will find that useful

- covered by tests (all the functions with different inputs)
- tested on python 3.9, 3.10, 3.11, 3.12
- have block monitoring module with handlers - so you can build block monitoring applications in minutes

Please let me know what you think about it ( i can't figure out how to attach images here maybe moderator can edit my post? )

https://ibb.co/Xxccj5V
https://ibb.co/QJsQRVv
https://ibb.co/0s7Dnq3
https://ibb.co/NshPqT6


Title: Re: AioTx - simple python crypto library
Post by: Ambatman on May 04, 2024, 07:14:11 PM
newbies can't really post images on Bitcointalk.
But I can help with that.

https://www.talkimg.com/images/2024/05/04/rrep1.png
https://www.talkimg.com/images/2024/05/04/rr0Zm.png
https://www.talkimg.com/images/2024/05/04/rrl3W.png
https://www.talkimg.com/images/2024/05/04/rrxBJ.png


Title: Re: AioTx - simple python crypto library
Post by: Grommash9 on May 20, 2024, 04:41:28 PM
I have pushed few new versions

Now my library supporting BTC and LTC, as you know that networks should know about transaction and we should store them somewhere so I have implemented sqlite/mysql database connectors for that

Now you can connect to public node and send BTC/LTC in bulk mode or single mode
You can deduct commission from recipients
And it's also have auto commission logic

All of the methods are tested and described in documentation

I am not able to upload pictures here so please look at the code examples in the repo itself

https://github.com/Grommash9/aiotx


Title: Re: AioTx - simple python crypto library
Post by: Grommash9 on May 24, 2024, 06:57:42 AM
Fixed error messages on block pulling and fixed using not checksumed contract address for EVM client, added and tested Polygon client
Removed chain ID param for EVM client creation - now we pulling it from node if we need it

So now it's BTC, LTC, ETH, BSC, Polygon are tested and ready to be used


Title: Re: AioTx - simple python crypto library
Post by: Grommash9 on May 28, 2024, 01:11:05 PM
TON client has been added, now you can monitor TON or send transactions

I will add tokens and nft's support later

You can see examples of using ton here:
https://github.com/Grommash9/aiotx/tree/main/examples

You can also see documentation for that here:
https://grommash9.github.io/aiotx/clients/ton_client/index.html


Title: Re: AioTx - simple python crypto library
Post by: Grommash9 on June 03, 2024, 06:14:36 AM

2.7.0 update pushed


TRON (TRX) client added (monitoring, address generation, getting balance)


All read only function for TRON, send and send token will be added later


TRON docs added (not for all methods yet)


docs here - https://grommash9.github.io/aiotx/clients/tron_client/index.html


Title: Re: AioTx - simple python crypto library
Post by: Grommash9 on June 08, 2024, 08:12:31 AM
I have pushed few new updates.

Now library is working with trx and trc20 sending so TRON network is kinda done now

For TON network i have added comment for send method (memo) and bulk send as well

Code example you can wind in the examples folder in the project, also documentation has been updated

Also i wanted to remind you what we are having telegram chat for devs where your can ask you questions

https://t.me/aiotx_python_chat

Next plans is to add jettons send for ton