На любую глубину. Думаю разберешься
Python:
Скопировать в буфер обмена
import time
from tqdm import tqdm
from bip_utils import Bip39SeedGenerator, Bip44, Bip44Coins, Bip44Changes
from web3 import Web3
addr_qty = input('Addresses from 1 seed qty: ')
seed_phrases_file_path = input("Enter the path to the seed phrases file: ")
with open(seed_phrases_file_path, "r") as file:
seed_phrases = [line.strip() for line in file.readlines()]
start_time = time.time()
processed_seeds = 0
output_file_path = input("Enter the path to the output file: ")
with open(output_file_path, "w") as output_file:
for seed in tqdm(seed_phrases, desc="Processing seed phrases"):
seed_bit = Bip39SeedGenerator(seed).Generate()
hui = Bip44.FromSeed(seed_bit, Bip44Coins.ETHEREUM)
for i in range(addr_qty):
adr_obj = hui.Purpose().Coin().Account(
0).Change(Bip44Changes.CHAIN_EXT).AddressIndex(i)
eth_adr = Web3.to_checksum_address(
adr_obj.PublicKey().ToAddress())
eth_priv_key = hex(int.from_bytes(
adr_obj.PrivateKey().Raw().ToBytes(), byteorder="big"))
output_file.write(f"{eth_adr}:{eth_priv_key}\n")
processed_seeds += 1
end_time = time.time()
elapsed_time = end_time - start_time
seeds_per_second = processed_seeds / elapsed_time
print(
f"Processed {processed_seeds} seed phrases in {elapsed_time:.2f} seconds.")
print(f"Seed phrases processed per second: {seeds_per_second:.2f}")