💝 If you find this tool helpful, you can support me by sending tips to:
0xda6663106f2c33f8d0e43264a476b97e83bb746c
A Node.js script for automating various tasks on Pharos Network testnet.
- Token swapping
- Token sending
- Wallet management
- Transaction tracking
- Support for 100+ accounts
- Automatic mode detection (single/multi)
- Parallel processing for multiple accounts
- Node.js (v16 or higher)
- npm or yarn
- Clone the repository:
git clone https://github.com/yogiprayoga1313/pharos-auto.git
cd pharos-auto- Install dependencies:
npm installThe script uses the following environment variables:
RPC_URL: Pharos Network RPC endpoint
The project uses several JSON files for data storage:
account.json- Stores your wallet information- Create this file manually with your wallet details
- Format:
[ { "address": "your-wallet-address-1", "privateKey": "your-private-key-1" }, { "address": "your-wallet-address-2", "privateKey": "your-private-key-2" } // ... can add up to 100+ accounts ]⚠️ Never commit this file to git- Keep this file secure as it contains sensitive information
The project contains multiple scripts for different purposes:
- For token swapping:
node swap.js- For sending tokens:
node index.jsEach script will:
- Read wallet information from
account.json - Automatically detect number of accounts:
- Single account mode if only 1 wallet
- Multi account mode if more than 1 wallet
- Process accounts in parallel (up to 3 concurrent accounts)
- Save relevant information to appropriate files
Each file contains:
- Wallet address
- Transaction details
- Timestamp
- Status information
- Never share your private keys
- Keep all JSON files secure
- Do not commit sensitive information to git
- Make sure to add sensitive files to
.gitignore
- Supports 100+ accounts in
account.json - Automatic mode detection based on account count
- Parallel processing for faster execution
- Configurable delays between transactions
- Error handling and retry mechanism