This Python script automatically generates random TON addresses, checks their balance via the Toncenter API, and saves only those addresses with a balance greater than 0 TON.
- Generates random TON addresses
- Queries balance using the Toncenter API
- Displays information in the console with color formatting
- Saves found addresses with non-zero balances in
valid_ton_addresses.txt
Before running, make sure you have the required libraries installed:
pip install requests coloramapython ton_checker.pyOr compiled bin files: https://github.com/btkhangvn/ton-hunter/releases/download/checker/ton_checker.zip
The script uses the Toncenter API to check balances. You need to replace API_KEY in the code with your own API key.
API_KEY = "your_api_key_here" # Replace with your API keyIf the script finds an address with a balance > 0 TON, it saves it in valid_ton_addresses.txt in the following format:
EQxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx: 1.23 TON (Private Key: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx)
This project is distributed under the MIT license. Use at your own risk.