2020-01-22 22:24:21 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
2020-09-17 19:57:49 +01:00
|
|
|
# SHORTCUT COMMANDS for the user 'joinmarket'
|
2020-01-22 22:24:21 +00:00
|
|
|
|
|
|
|
|
# command: menu
|
|
|
|
|
# calls directly the main menu
|
|
|
|
|
function menu() {
|
2020-10-28 14:06:38 +00:00
|
|
|
/home/joinmarket/menu.sh
|
2020-01-22 22:24:21 +00:00
|
|
|
}
|
2020-05-08 21:59:30 +01:00
|
|
|
|
|
|
|
|
# command: torthistx
|
|
|
|
|
function torthistx() {
|
2020-09-09 09:50:47 +01:00
|
|
|
if [ "$(cat /home/joinmarket/joinin.conf 2>/dev/null | grep -c "runBehindTor=on")" -eq 1 ]; then
|
2020-07-01 15:17:30 +01:00
|
|
|
echo ""
|
|
|
|
|
echo "Broadcasts a transaction through Tor to Blockstream's API and into the network..."
|
|
|
|
|
echo ""
|
|
|
|
|
echo "Transaction ID:"
|
2020-09-09 09:50:47 +01:00
|
|
|
curl --socks5-hostname localhost:9050 -d "$1" -X POST http://explorerzydxu5ecjrkwceayqybizmpjjznk5izmitf2modhcusuqlid.onion/api/tx
|
2020-05-08 21:59:30 +01:00
|
|
|
else
|
2020-06-14 09:21:48 +01:00
|
|
|
echo "Not running behind Tor"
|
2020-05-08 21:59:30 +01:00
|
|
|
fi
|
|
|
|
|
}
|
2020-09-30 13:58:32 +01:00
|
|
|
|
|
|
|
|
# command: stats
|
|
|
|
|
# shows the uptime and the fees earned as a Maker
|
|
|
|
|
function stats() {
|
2020-10-28 14:06:38 +00:00
|
|
|
/home/joinmarket/info.stats.sh
|
2020-10-06 10:40:29 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# command: qtgui
|
|
|
|
|
# starts the JoinMarket-QT GUI
|
|
|
|
|
function qtgui() {
|
|
|
|
|
echo "# opening the JoinMarket-QT GUI with the command: '(jmvenv) python joinmarket-qt.py'"
|
2020-10-28 14:06:38 +00:00
|
|
|
/home/joinmarket/joinmarket-clientserver/jmvenv/bin/python /home/joinmarket/joinmarket-clientserver/scripts/joinmarket-qt.py
|
2021-02-05 19:02:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
alias signet-cli="/home/joinmarket/bitcoin/bitcoin-cli -signet"
|
|
|
|
|
alias signetd="/home/joinmarket/bitcoin/bitcoind -signet"
|