DEV Community

Cover image for CREATE PRIVATE KEY AND ADDRESS TRON PYTHON
MMDRZA
MMDRZA

Posted on

CREATE PRIVATE KEY AND ADDRESS TRON PYTHON

make and create wallet address and private key in tron network (trx) with help python for batch maker code sample . In this tool, many other models and methods can be used and it can be used for other ways, which I will try in the future for you, dear friends, more and more professional tools in this field. But as far as I could, I sent this tutorial simple so that even beginners can understand it from the beginning tron (TRX). I promise you the future development of this tool.

from tronpy.keys import PrivateKey
import time

a=1
while True:
    Private = PrivateKey.random()
    Address  = Private.public_key.to_base58check_address()
    print((a),'\nP:',Private,'\nA:',Address)
# You can change it in seconds. The less it is
# the faster you want the result. The more CPU it uses.
    time.sleep(1)
# You can delete this value if you do not need to number
# and sort the output results
    a=a+1
Enter fullscreen mode Exit fullscreen mode

needed install this package "tronpy" can you install this code :

pip3 install tronpy
Enter fullscreen mode Exit fullscreen mode

Top comments (0)