Skip to content

Instantly share code, notes, and snippets.

@dsbaars
Created March 3, 2022 16:41
Show Gist options
  • Select an option

  • Save dsbaars/fe3348ad6742695d74b4bd758140a094 to your computer and use it in GitHub Desktop.

Select an option

Save dsbaars/fe3348ad6742695d74b4bd758140a094 to your computer and use it in GitHub Desktop.
keysend multiple nodes example
#!/bin/bash
input="keysends.txt"
while read -r line
do
# Make sure you change -a to the amount of sats you want to send, this script you run LND in a docker container called lnd
docker exec lnd lncli sendpayment --keysend --dest $line -a 1
done < "$input"
0380b3dbdf090cacee19eb4dc7a82630bd3de8b12608dd7bee971fb3cd2a5ae2fc
0380b3dbdf090cacee19eb4dc7a82630bd3de8b12608dd7bee971fb3cd2a5ae2fc
0380b3dbdf090cacee19eb4dc7a82630bd3de8b12608dd7bee971fb3cd2a5ae2fc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment