mirror of
https://github.com/openoms/joininbox.git
synced 2026-08-14 12:43:13 +02:00
20 lines
585 B
Bash
Executable file
20 lines
585 B
Bash
Executable file
#!/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 "Broadcasts a transaction through Tor to Blockstream's 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"
|
|
fi
|
|
}
|