├── requirements.txt ├── ton_wallet.py └── README.md /requirements.txt: -------------------------------------------------------------------------------- 1 | tqdm 2 | tonsdk -------------------------------------------------------------------------------- /ton_wallet.py: -------------------------------------------------------------------------------- 1 | import tqdm 2 | from tonsdk.contract.wallet import Wallets, WalletVersionEnum 3 | 4 | # Function to create wallets and save to file 5 | def generate_wallets(count): 6 | output = "" 7 | for i in tqdm.tqdm(range(count), desc="Generating wallets"): 8 | mnemonics, pub_k, priv_k, wallet = Wallets.create(WalletVersionEnum.v4r2, workchain=0) 9 | wallet_address = wallet.address.to_string(True, True, False) 10 | 11 | output += "\n\n" + wallet_address + "\n" + ' '.join(mnemonics) + "\n" 12 | 13 | with open("wallets.txt", "a") as f: 14 | f.write(output) 15 | 16 | 17 | # Main script 18 | if __name__ == "__main__": 19 | print(""" 20 | 21 | 22 | _ _ _ _ _ _____ _ 23 | | | | (_) | | | | / ____| | | 24 | | |__| |_ __| | __| | ___ _ __ | | ___ __| | ___ 25 | | __ | |/ _` |/ _` |/ _ \ '_ \| | / _ \ / _` |/ _ \\ 26 | | | | | | (_| | (_| | __/ | | | |___| (_) | (_| | __/ 27 | |_| |_|_|\__,_|\__,_|\___|_| |_|\_____\___/ \__,_|\___| 28 | 29 | by Aero25x 30 | 31 | """) 32 | count = input("Enter the number of wallets to generate: ") 33 | try: 34 | count = int(count) 35 | generate_wallets(count) 36 | except ValueError: 37 | print("Please enter a valid number.") 38 | 39 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | [![Join our Telegram](https://img.shields.io/badge/Telegram-2CA5E0?style=for-the-badge&logo=telegram&logoColor=white)](https://t.me/hidden_coding) 2 | 3 | ### README in English 4 | 5 | ![image psd(14)](https://github.com/flaming-chameleon/ton-wallet-generation/assets/73156836/0df6455d-cd51-4061-897e-568edf757db0) 6 | 7 | 8 | # Wallet Generator 9 | 10 | This script generates multiple TON blockchain wallets and saves their addresses and private keys to a file. 11 | 12 | ## Features 13 | 14 | - Generates wallets in the TON blockchain 15 | - Saves wallet addresses and private keys to a text file 16 | - Includes a progress bar to monitor the generation process 17 | 18 | ## Requirements 19 | 20 | - Python 3.x 21 | - `tqdm` library for the progress bar 22 | - `tonsdk` library for interacting with TON wallets 23 | 24 | ## Installation 25 | 26 | 1. Clone the repository: 27 | ```sh 28 | git clone https://github.com/flaming-chameleon/ton-wallet-generation.git 29 | cd ton-wallet-generation 30 | ``` 31 | 32 | 2. Install the required libraries: 33 | ```sh 34 | pip install -r requirements.txt 35 | ``` 36 | 37 | ## Usage 38 | 39 | 1. Run the script: 40 | ```sh 41 | python ton_wallet.py 42 | ``` 43 | 44 | 2. Enter the number of wallets to generate when prompted. 45 | 46 | The generated wallet addresses and private keys will be saved in the `wallets.txt` file. 47 | 48 | ## License 49 | 50 | This project is licensed under the MIT License. 51 | 52 | 53 | ### README in Russian 54 | 55 | 56 | # Генератор Кошельков 57 | 58 | Этот скрипт генерирует несколько кошельков блокчейна TON и сохраняет их адреса и приватные ключи в файл. 59 | 60 | ## Возможности 61 | 62 | - Генерация кошельков в блокчейне TON 63 | - Сохранение адресов кошельков и приватных ключей в текстовый файл 64 | - Включает индикатор прогресса для мониторинга процесса генерации 65 | 66 | ## Требования 67 | 68 | - Python 3.x 69 | - Библиотека `tqdm` для индикатора прогресса 70 | - Библиотека `tonsdk` для взаимодействия с кошельками TON 71 | 72 | ## Установка 73 | 74 | 1. Клонируйте репозиторий: 75 | ```sh 76 | git clone https://github.com/flaming-chameleon/ton-wallet-generation.git 77 | cd ton-wallet-generation 78 | ``` 79 | 80 | 2. Установите необходимые библиотеки: 81 | ```sh 82 | pip install -r requirements.txt 83 | ``` 84 | 85 | ## Использование 86 | 87 | 1. Запустите скрипт: 88 | ```sh 89 | python ton_wallet.py 90 | ``` 91 | 92 | 2. Введите количество кошельков для генерации при запросе. 93 | 94 | Сгенерированные адреса кошельков и приватные ключи будут сохранены в файл `wallets.txt`. 95 | 96 | ## Лицензия 97 | 98 | [![Join our Telegram](https://img.shields.io/badge/Telegram-2CA5E0?style=for-the-badge&logo=telegram&logoColor=white)](https://t.me/hidden_coding) 99 | 100 | 101 | Этот проект лицензирован под лицензией MIT. 102 | --------------------------------------------------------------------------------