Skip to content

Instantly share code, notes, and snippets.

@bensig
Last active January 25, 2022 08:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save bensig/2047883504d9dcd3b7238cfced3018a3 to your computer and use it in GitHub Desktop.
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
#!/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