A bash script for managing T3rn executor nodes with easy installation and maintenance capabilities.
- 🚀 Easy node installation and updates
- 📊 Real-time log monitoring
- 💰 Dynamic gas fee adjustment
- 🔄 Automatic node restart functionality
- 🛠 Version management
- 🗑️ Clean uninstallation
- Ubuntu/Debian-based Linux system
- Sudo privileges
- Required packages:
- make
- screen
- build-essential
- software-properties-common
- curl
- git
- nano
- jq
- Download the script:
wget https://raw.githubusercontent.com/dsadwqeqeasad/ternNode/main/ternNodeManager.sh
chmod +x ternNodeManager.sh- Run the script:
./ternNodeManager.sh- Install Node - Install a new T3rn executor node
- Stop Node - Stop the running node
- Restart Node - Restart the node
- Auto Restart Node - Enable automatic restart every 2 hours
- Update Node version - Update to the latest or specific version
- Uninstall Node - Remove the node completely
- Logs - View node logs
- Change Fee - Adjust gas fee settings
- Exit - Exit the script
ENVIRONMENT="testnet"
LOG_LEVEL="debug"
LOG_PRETTY="false"
EXECUTOR_PROCESS_BIDS_ENABLED=true
EXECUTOR_PROCESS_ORDERS_ENABLED=true
EXECUTOR_PROCESS_CLAIMS_ENABLED=true
ENABLED_NETWORKS='arbitrum-sepolia,base-sepolia,optimism-sepolia,l2rn'The script includes pre-configured RPC endpoints for:
- L2RN
- Arbitrum Sepolia
- Base Sepolia
- Optimism Sepolia
- Unichain
- Blast Sepolia
./ternNodeManager.sh
# Select option 1
# Enter your private key when prompted./ternNodeManager.sh
# Select option 8
# Enter new gas price in GWEI./ternNodeManager.sh
# Select option 7The script includes an auto-restart feature that:
- Creates a screen session named 't3rnnode_auto'
- Restarts the node every 2 hours
- Persists across system reboots via crontab
-
Node Won't Start
- Check if the executor folder exists
- Verify your private key
- Check screen session status
-
Screen Session Issues
- Run
screen -lsto check existing sessions - Kill stuck sessions with
screen -X -S [session] quit
- Run
-
Permission Issues
- Ensure script has execute permissions
- Run with sudo when required
- Store your private key securely
- Don't share screen session details
- Regularly update node version
- Monitor logs for suspicious activity
Feel free to submit issues and enhancement requests!