Last active
January 25, 2022 08:00
-
-
Save bensig/2047883504d9dcd3b7238cfced3018a3 to your computer and use it in GitHub Desktop.
Send a transaction with a memo to a list contained in recipients.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# This sends an on-chain transaction with a memo defined in the MEMO section. | |
# | |
# Usage: | |
# 1. Create a file such as a "recipients.txt" file where you list all of the recipients one per line | |
# 2. Set the account and memo under variables below - make sure your wallet is unlokced! | |
# Then run: | |
# ./transaction.sh recipients.txt | |
# variables | |
FILE=$1 | |
MEMO="" | |
ACCOUNT="" | |
while IFS= read -r LINE | |
do | |
cleos -u https://proton.greymass.com:443 transfer $ACCOUNT $LINE "0.0001 XPR" "$MEMO" | |
done < "$FILE" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment