Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Volt NFT Profit Auto-Forwarder - Server Deployment Package

πŸ“¦ Package Contents

This directory contains everything you need to deploy the Volt NFT profit auto-forwarder on your server.

Files Included

  • auto_forward_profits.sh - Bash version of the forwarder
  • auto_forward_profits.py - Python version (better error handling)
  • deploy.sh - Automated deployment script
  • SERVER_SETUP.md - Complete setup guide
  • volt-profit-forwarder.service - Systemd service file (Bash)
  • volt-profit-forwarder-python.service - Systemd service file (Python)
  • README.md - This file

πŸš€ Quick Start (3 Steps)

1. Upload to Server

scp -r server-deployment/ your-server:/home/youruser/volt-forwarder/

2. SSH into Server

ssh your-server
cd /home/youruser/volt-forwarder/

3. Run Deployment Script

chmod +x deploy.sh
./deploy.sh

The script will guide you through the setup!


πŸ“– What Does It Do?

The auto-forwarder:

  1. Checks wallet balance every 15 minutes

    • Monitors: 0xa1aC07a5797018597a2fD3bcb2db0a2fc23bb224
  2. Sends 100% of profits to:

    • 0x73764314D30273C37fD6735032Aa78Fc79fA6d40
  3. Keeps minimal gas reserve:

    • 0.001 ETH for future transactions
  4. Runs forever:

    • Auto-restarts on errors
    • Logs all activity

πŸ’° How Profit Flow Works

NFT Sale (0.0042 ETH)
    ↓
a1ac wallet receives payment
    ↓
Every 15 minutes, script checks
    ↓
If balance > 0.003 ETH:
  β†’ Sends (balance - 0.001 ETH) to profit wallet
  β†’ Keeps 0.001 ETH for gas
    ↓
Logs transaction
    ↓
Repeat forever

πŸ“‹ Requirements

Server Requirements

  • Ubuntu/Debian Linux (or any Linux with systemd)
  • SSH access
  • Sudo access (for systemd installation)
  • 24/7 uptime recommended

Software Requirements

  • Foundry (will be installed by deploy.sh if missing)
  • Bash or Python 3 (already on most Linux systems)

πŸ”§ Deployment Methods

Choose one:

Method 1: Systemd Service ⭐ RECOMMENDED

Pros:

  • Auto-starts on server reboot
  • Auto-restarts if crashes
  • Professional logging with journald
  • Easy to manage

Setup:

./deploy.sh
# Choose option 1

Manage:

sudo systemctl status volt-profit-forwarder
sudo systemctl stop volt-profit-forwarder
sudo systemctl restart volt-profit-forwarder

Method 2: Screen Session

Pros:

  • Simple to use
  • Good for testing
  • Can attach/detach easily

Setup:

./deploy.sh
# Choose option 2

Manage:

screen -r volt-forwarder  # Attach
# Ctrl+A then D to detach
screen -ls  # List sessions

Method 3: Nohup Background

Pros:

  • Very simple
  • No extra packages needed

Setup:

./deploy.sh
# Choose option 3

Manage:

ps aux | grep auto_forward_profits  # Check if running
tail -f forwarder.log  # View logs
kill <PID>  # Stop

πŸ” Monitoring

Check if Running

# Systemd
sudo systemctl status volt-profit-forwarder

# Or check process
ps aux | grep auto_forward_profits

View Logs

# Systemd (real-time)
sudo journalctl -u volt-profit-forwarder -f

# Systemd (last 50 lines)
sudo journalctl -u volt-profit-forwarder -n 50

# File logs
tail -f ~/volt_profit_forwarding.log

Check Wallet Balance

cast balance 0xa1aC07a5797018597a2fD3bcb2db0a2fc23bb224 --rpc-url https://mainnet.base.org

βš™οΈ Configuration

Adjust Check Interval

Edit the script:

nano auto_forward_profits.sh
# Change: CHECK_INTERVAL=900  (15 minutes)
# To: CHECK_INTERVAL=300  (5 minutes)

Adjust Gas Reserve

nano auto_forward_profits.sh
# Change: GAS_RESERVE="1000000000000000"  (0.001 ETH)
# To: GAS_RESERVE="5000000000000000"  (0.005 ETH)

Restart After Changes

# Systemd
sudo systemctl restart volt-profit-forwarder

# Screen
screen -X -S volt-forwarder quit
screen -dmS volt-forwarder ./auto_forward_profits.sh

πŸ†˜ Troubleshooting

Script Won't Start

Check Foundry installation:

cast --version
# If not found:
curl -L https://foundry.paradigm.xyz | bash
foundryup

Check permissions:

chmod +x auto_forward_profits.sh auto_forward_profits.py

No Transfers Happening

Check wallet balance:

cast balance 0xa1aC07a5797018597a2fD3bcb2db0a2fc23bb224 --rpc-url https://mainnet.base.org

Balance must be > 0.003 ETH to trigger transfer.

Check logs for errors:

sudo journalctl -u volt-profit-forwarder -n 100

Script Stops After Reboot

Enable auto-start:

sudo systemctl enable volt-profit-forwarder

πŸ”’ Security

File Permissions

Scripts contain private keys! Restrict access:

chmod 700 auto_forward_profits.sh auto_forward_profits.py
chmod 600 ~/volt_profit_forwarding.log

Firewall

sudo ufw allow ssh
sudo ufw enable

Server Updates

sudo apt-get update && sudo apt-get upgrade -y

πŸ“ž Quick Reference

# Deploy
./deploy.sh

# Start (systemd)
sudo systemctl start volt-profit-forwarder

# Stop (systemd)
sudo systemctl stop volt-profit-forwarder

# Status (systemd)
sudo systemctl status volt-profit-forwarder

# Logs (systemd, real-time)
sudo journalctl -u volt-profit-forwarder -f

# Check balance
cast balance 0xa1aC07a5797018597a2fD3bcb2db0a2fc23bb224 --rpc-url https://mainnet.base.org

# Check if running
ps aux | grep auto_forward_profits

# Kill all instances
pkill -f auto_forward_profits

πŸ“Š Expected Behavior

Normal Operation

[2025-11-25 16:00:00] Checking wallet balance...
[2025-11-25 16:00:01] Current balance: 0.000300 ETH
[2025-11-25 16:00:01] Balance below threshold. No transfer needed.
[2025-11-25 16:00:01] Need at least 0.003000 ETH to trigger transfer
[2025-11-25 16:00:01] Sleeping for 15 minutes...

After NFT Sale

[2025-11-25 16:15:00] Checking wallet balance...
[2025-11-25 16:15:01] Current balance: 0.004500 ETH
[2025-11-25 16:15:01] SENDING PROFITS TO 0x7376...
[2025-11-25 16:15:01]    Amount: 0.003500 ETH
[2025-11-25 16:15:01]    Keeping: 0.001000 ETH (gas dust)
[2025-11-25 16:15:05] Successfully sent 0.003500 ETH to profit wallet
[2025-11-25 16:15:05] Sleeping for 15 minutes...

βœ… Deployment Checklist

Before going live:

  • Uploaded files to server
  • Foundry installed (cast --version works)
  • Scripts have execute permission
  • Tested manually once
  • Chose deployment method
  • Service is running
  • Can view logs
  • Verified wallet addresses
  • Set up monitoring/alerts (optional)

πŸ’‘ Tips

  1. Start with screen for testing, then switch to systemd
  2. Check logs daily for the first week
  3. Keep backups of scripts in case server fails
  4. Monitor server health - disk space, memory, CPU
  5. Test with small amount before full deployment

πŸ“§ Support

For detailed instructions, see SERVER_SETUP.md


🎯 You're Ready!

Deploy the forwarder and let it run. It will automatically send all NFT sale profits to the profit wallet every 15 minutes.

Good luck! πŸš€πŸ’°

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages