0

I have this code where I randomly generate mnemonic seeds and get the Eth address.

so I want to stick my counter and Avg Number of results per minute so that after I print. It will show me how many Ether addresses I have generated and if possible it will also show avg number of results I am getting per minute like 100 ether addresses per minute.

(I am using 2 mnemonics because I want to increase it's speed)

It's the first time I am posting an issue here so I hope I am able to convey my issue properly

# import threading
from hdwallet import BIP44HDWallet
from hdwallet.cryptocurrencies import EthereumMainnet
from hdwallet.derivations import BIP44Derivation
from hdwallet.utils import generate_mnemonic
from typing import Optional
from requests import get
import requests

while True:

    #Generate Mnemonic 12 words
    mnemonic1: str = generate_mnemonic(language="english", strength=128)
    mnemonic2: str = generate_mnemonic(language="english", strength=128

    #Generate ETH Address from Mnemonic
    bip44_hdwallet: BIP44HDWallet = BIP44HDWallet(symbol=ETH, account=0, change=False, address=0)
    bip44_hdwallet.from_mnemonic(mnemonic=mnemonic1)
    ETH1_address = bip44_hdwallet.address()
    
    #Generate ETH Address from Mnemonic
    bip44_hdwallet: BIP44HDWallet = BIP44HDWallet(symbol=ETH, account=0, change=False, address=0)
    bip44_hdwallet.from_mnemonic(mnemonic=mnemonic2)
    ETH2_address = bip44_hdwallet.address()

    print("Mnemonic1 =", (mnemonic1) , "\nMnemonic2 =", (mnemonic2))
    print("ETH1_address =", (ETH1_address) , "\nETH2_address =", (ETH2_address))


-----------------------------------Output I Want ---------------------------------

mnemonic1 = seed .......
Mnemonic2 = seed2 .......
ETH1_address = Eth address .......
ETH2_address = Eth address2 ........



Counter Stick here
Counter = #No of its printing like in above its 2 address
Avg Result/Min = #If possible

0 Answers0