An automated script designed to simplify claiming tokens from the MegaETH Faucet. This script solves Turnstile captchas using 2Captcha integration, supports proxies (including authenticated proxies), and processes multiple wallet addresses concurrently.
- Automated Turnstile Captcha Solving: Integrates with 2Captcha to automatically solve captchas.
- Proxy Support: Works with both non-authenticated (
ip:port) and authenticated proxies (ip:port:user:pass). - Multi-threaded Processing: Processes wallet claims concurrently for improved efficiency.
- Flexible Wallet Configuration: Supports wallet addresses from both
wallet.txt(plain text) andwallets.json(JSON format). - Comprehensive Logging: Logs successful claims in
success.txtand failures infail.txt.
git clone https://github.com/Aero25x/megaeth-faucet.git
cd megaeth-faucetpip install requests colorama twocaptcha pytz tzlocal
pip install 2captcha-python == 1.5.1Before running the script, configure the following files and settings:
Add your wallet addresses, one per line:
0xYourWalletAddress1
0xYourWalletAddress2
To load additional wallets from a JSON file, create wallets.json:
[
{"address": "0xYourWalletAddress3"},
{"address": "0xYourWalletAddress4"}
]Wallet addresses from wallets.json will be combined with those in wallet.txt.
List your proxies in one of the following formats:
- Without Authentication:
192.168.1.100:8080
- With Authentication:
31.56.139.207:6276:hxjsvept:3pzgwox5suvu
Edit the script (e.g., main.py) to update your API keys and other settings:
TWO_CAPTCHA_API_KEY = "Your_2Captcha_API_Key"
TURNSTILE_SITEKEY = "Your_Turnstile_Sitekey"
TURNSTILE_PAGE_URL = "https://testnet.megaeth.com/"Adjust additional configuration options such as thread count and API endpoints as needed.
To start the claim process, run:
python main.pyProcessing wallet: 0xYourWalletAddress1
Attempt 1: Using proxy IP 31.56.139.207
Requesting Turnstile captcha solution from 2Captcha...
Turnstile captcha solved successfully.
Claim response: https://www.megaexplorer.xyz/tx/transaction_hash_here
Claim SUCCESS for wallet 0xYourWalletAddress1
- Successful Claims: Logged in
success.txt - Failed Attempts: Logged in
fail.txt
Contributions are welcome! Please open an issue or submit a pull request for improvements or bug fixes.
Use this script responsibly. The developer is not liable for any misuse or unintended consequences. Always test in a safe environment before deploying in production.