You can automate cli wallet compounding with a script in any operation system. Just need to know which scripting language to use, but here is example for windows.
The following compound.bat script runs untill stopped in powershell. You need to modify delay
to your preferences, really depends how often you find blocks with solo mining. Then you need to modify hoosat:replaceadddres
to you wallet address and yourwalletpassword
for the wallets password.
Compound.bat
@echo off
setlocal
REM Set delay in seconds between runs
set delay=60
REM The command to run
set command=htnwallet send --send-all -t hoosat:replaceadddres -p yourwalletpassword
echo Running command forever with a %delay%-second delay...
:loop
echo.
echo Running command...
call %command%
timeout /t %delay% >nul
goto loop
In linux you can use bash script in most terminals. Do the same modifications as mentioned on the above windows compound.bat for your compounding.
#!/bin/bash
# Delay in seconds between runs
delay=60
# The command to run
command="./htnwallet send --send-all -t hoosat:replaceadddres -p yourwalletpassword"
echo "Running command forever with a $delay-second delay..."
count=1
while true; do
echo
echo "Run $count:"
eval $command
((count++))
sleep $delay
done
You can alter the compounding scripts for your wallet consolidation strategies. But remember not to compound too often as that just causes you to pay unnecessary transaction fees. Good strategy is to compound on the cli wallet once every 2500 UTXO you receive.