-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathmain.py
27 lines (22 loc) · 1 KB
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import asyncio
from banner import display_banner
from config import web3, num_daily_tx
from check_in import check_in
from transactions import send_transactions
from colorama import Fore, Style
# Load private keys
with open("pvkeys.txt", "r") as file:
private_keys = [line.strip() for line in file if line.strip()]
display_banner()
async def main():
while True:
for private_key in private_keys:
from_address = web3.eth.account.from_key(private_key).address
short_address = f"{from_address[:8]}...{from_address[-4:]}"
print(f"{Fore.CYAN}[{short_address}] Processing Check in: {Style.RESET_ALL}")
await check_in(from_address)
print(f"{Fore.CYAN}[{short_address}] Processing Daily Transactions: {short_address}{Style.RESET_ALL}")
await send_transactions(private_key, num_daily_tx)
print(f"{Fore.YELLOW}All accounts processed. Sleeping for 24 hours...{Style.RESET_ALL}")
await asyncio.sleep(24 * 60 * 60)
asyncio.run(main())