Bitcoin Forum
November 12, 2024, 03:24:28 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: AioTx - simple python crypto library  (Read 311 times)
Grommash9 (OP)
Newbie
*
Offline Offline

Activity: 15
Merit: 9


View Profile
May 04, 2024, 11:04:11 AM
Merited by ABCbits (3)
 #1

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
Ambatman
Sr. Member
****
Offline Offline

Activity: 448
Merit: 343


Playbet.io - Crypto Casino and Sportsbook


View Profile WWW
May 04, 2024, 07:14:11 PM
 #2

newbies can't really post images on Bitcointalk.
But I can help with that.






███████████████
█████████████████████
██████▄▄███████████████
██████▐████▄▄████████████
██████▐██▀▀▀██▄▄█████████
████████▌█████▀██▄▄██████
██████████████████▌█████
█████████████▀▄██▀▀██████
██████▐██▄▄█▌███████████
██████▐████▀█████████████
██████▀▀███████████████
█████████████████████
███████████████
 
Playbet.io
  
Casino & Sportsbook
  
Grab up to
BTC 
+ 800 Free Spins
████████████████████████████████████████
██████████████████████████████████████████████
██████▄▄████████████████████████████████████████
██████▐████▄▄█████████████████████████████████████
██████▐██▀▀▀██▄▄██████████████████████████████████
████████▌█████▀██▄▄█████▄███▄███▄███▄█████████████
██████████████████▌████▀░░██▌██▄▄▄██████████████
█████████████▀▄██▀▀█████▄░░██▌██▄░░▄▄████▄███████
██████▐██▄▄█▌██████████▀███▀███▀███▀███▀█████████
██████▐████▀██████████████████████████████████████
██████▀▀████████████████████████████████████████
██████████████████████████████████████████████
████████████████████████████████████████
Grommash9 (OP)
Newbie
*
Offline Offline

Activity: 15
Merit: 9


View Profile
May 20, 2024, 04:41:28 PM
 #3

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
Grommash9 (OP)
Newbie
*
Offline Offline

Activity: 15
Merit: 9


View Profile
May 24, 2024, 06:57:42 AM
 #4

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
Grommash9 (OP)
Newbie
*
Offline Offline

Activity: 15
Merit: 9


View Profile
May 28, 2024, 01:11:05 PM
 #5

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
Grommash9 (OP)
Newbie
*
Offline Offline

Activity: 15
Merit: 9


View Profile
June 03, 2024, 06:14:36 AM
Merited by Vod (1)
 #6


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
Grommash9 (OP)
Newbie
*
Offline Offline

Activity: 15
Merit: 9


View Profile
June 08, 2024, 08:12:31 AM
 #7

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
Grommash9 (OP)
Newbie
*
Offline Offline

Activity: 15
Merit: 9


View Profile
June 16, 2024, 09:44:06 AM
 #8

I have pushed a lot of bug fixed for BTC/LTC client and for TON as well (3.0.1-3.0.6)

And now I have pushed 4.0.0

- UTXO client get_raw_transaction and get transaction fee methods added
- Now you are able not install clients what you don't really need

for TON use
pip install aiotx

For BTC/LTC
pip install aiotx[utxo]

For ETH/MATIC/BSC/TRON
pip install aiotx[evm]

You also can install all of them by:
pip install aiotx[utxo,evm]
Grommash9 (OP)
Newbie
*
Offline Offline

Activity: 15
Merit: 9


View Profile
July 07, 2024, 08:27:40 AM
 #9

In last versions I have added:

TON sending jettons, TON getting jetton address
Some fixes for UTXO clients and also added a function to spend outputs of parent transaction as a child to speed up transactions
New handler for monitoring what will now get all the transactions from all block

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!