Pharos Network Automation ๐
Hey, Cat Lovers! ๐ฏ This Python script helps you create wallets, claim faucet tokens, and send tokens on the Pharos Testnet. Itโs got a smooth CLI with rounded tables, proxy support, and a simple menu. Whether youโre testing or just messing around, this toolโs here to help! ๐
Whatโs This For? ๐ค
This script does three main things:
Claim Faucet ๐ง: Makes wallets, logs in, and grabs testnet tokens with invite codes.
Send Tokens ๐ธ: Sends tokens from your wallets to someone else.
Exit ๐ช: Closes the app when youโre done.
Itโs built with Python, uses rich for pretty tables, aiohttp for async API calls, and web3 for blockchain stuff. Proxy support is included if you need it! ๐ต๏ธโโ๏ธ
Project Structure ๐
pharos_automation/
โโโ config/
โ โโโ settings.py # API, RPC, proxy config
โโโ models/
โ โโโ wallet.py # Wallet dataclass
โโโ utils/
โ โโโ ui.py # Rounded table UI
โโโ helpers/
โ โโโ api.py # Login & faucet API calls
โ โโโ wallet.py # Wallet creation & token sending
โโโ main.py # Main script (menu)
โโโ requirements.txt # Dependencies
โโโ wallets.json # Wallet data
โโโ .gitignore # Ignore stuff
โโโ README.md # This file!What You Need ๐ ๏ธ
Python 3.8+ (
python --version)Proxy (optional, for API calls)
Git (to clone the repo)
Pharos Testnet invite code
Setup โ๏ธ
Clone the Repo
Make a Virtual Environment
Install Stuff
(Installs
web3,rich,aiohttp,eth-account,python-dotenv,tenacity.)Set Up .env Make a
.envfile in the project folder:Change
PROXY_URL,RECIPIENT_ADDRESS, andINVITE_CODESto your own values.Run It
How To Use ๐ฎ
When you run python main.py, youโll see a menu like this:
Claim Faucet ๐ง
Enter how many wallets per invite code (default: 10)
Enter how many threads (default: 4)
The script makes wallets, logs in, and claims faucet tokens
Youโll see rounded tables with wallet addresses and status (Success/Failed)
Successful wallets get saved to
wallets.jsonYou get a summary table at the end
Send Tokens ๐ธ
Enter how many threads (default: 4)
Loads wallets from
wallets.json, checks balances, and sendsFAUCET_AMOUNTtoRECIPIENT_ADDRESSShows tables with address, balance, tx hash, and status
Ends with a summary table
Exit ๐ช
Just closes the script
Example Output ๐ฅ๏ธ
Hereโs what the tables look like:
And the summary:
Troubleshooting ๐
Proxy not working?
Check your
PROXY_URLin.envTest:
curl --proxy http://your-proxy:port https://api.pharosnetwork.xyz/user/loginTry without a proxy: leave
PROXY_URLempty
Invite code invalid?
Make sure
INVITE_CODESis right in.envTest the API with curl
Tables not rounded?
Make sure you have
rich==14.0.0Check
utils/ui.pyusesbox=box.ROUNDED
Dependency issues?
Check versions:
pip show web3 rich aiohttp eth-account python-dotenv tenacityReinstall:
pip install -r requirements.txt
Still stuck?
Share your
.env(hide sensitive stuff)Share console output or screenshots
Run
python --versionandpip --version
Contributing ๐ค
Got ideas? Fork the repo, make changes, and send a pull request! Add new features, UI tweaks, or whatever you think is cool. Letโs make it awesome! ๐
License ๐
MIT License. Use it, share it, enjoy it! ๐
Thanks ๐
Happy automating, Cat Lovers! ๐ฏ๐
Last updated
Was this helpful?