Infinite loop version (EASY)
node . wallet split <count>#!/bin/bash
# Check that 3 arguments are passed; otherwise, exit the script
if [ "$#" -ne 3 ]; then
echo "Illegal number of parameters"
echo "Usage: NAME_OF_YOUR_BASH_FILE.sh 0 YOUR_WALLET TICKER"
exit 1
fi
count=0
max_count=4
target_address=$2
token_name=$3
while true; do
while [ $count -lt $max_count ]; do
echo "Current count: $count"
# Replace 50 by the limit amount of your desired token, below 50 is for FIWB TICKER
node . drc-20 mint "$target_address" "$token_name" 50 12
remaining=$((max_count - count))
echo "Counts left: $remaining"
sleep 5 # Sleep for 5 seconds
((count++))
done
rm pending-txs.json
sleep 5
node . wallet sync
sleep 5
node . wallet sync
sleep 600
count=0
doneLaunch the bash files on your node :
VPS :
Windows :
Understanding the Script
The Basics
Parameters
Looping and Minting
Updating and Syncing
Last updated