joininbox/scripts/_commands.sh
2020-05-08 21:59:30 +01:00

20 lines
602 B
Bash

#!/bin/bash
# SHORTCUT COMMANDS for the user 'joinmarket' from terminal
# command: menu
# calls directly the main menu
function menu() {
cd /home/joinmarket
./menu.sh
}
# command: torthistx
function torthistx() {
if [ $(cat /mnt/hdd/raspiblitz.conf 2>/dev/null | grep -c "runBehindTor=on") -eq 1 ]; then
echo "Broadcasting transaction through Tor to Blockstreams API and into the network."
curl --socks5-hostname localhost:9050 -d $1 -X POST http://explorerzydxu5ecjrkwceayqybizmpjjznk5izmitf2modhcusuqlid.onion/api/tx
else
echo "Not running behind Tor - to install run:"
fi
}