2024-12-31 10:03:56 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -euo pipefail
|
|
|
|
|
2021-08-31 06:25:02 +00:00
|
|
|
[ "$#" -eq 0 ] &&
|
|
|
|
echo "Requires a command. Run with 'help' for a list of commands." &&
|
|
|
|
exit 1
|
|
|
|
|
|
|
|
case $1 in
|
|
|
|
"wallet")
|
2024-12-31 10:09:04 +00:00
|
|
|
monero-wallet-cli --daemon-address node.monero.net:13666
|
|
|
|
;;
|
2021-08-31 06:25:02 +00:00
|
|
|
"address")
|
2024-12-31 10:09:04 +00:00
|
|
|
echo "42espNaUqPdJK4vTir4NDfH4gT6brFR4F5KPRADrg5t98LkzHnQfFnUDZZEetp3Zw5K8V4v364tN3TMxfg4eXEN9RpnrNBG"
|
|
|
|
;;
|
2021-08-31 06:25:02 +00:00
|
|
|
"help")
|
|
|
|
echo "USAGE: monero-client [command]
|
|
|
|
Commands:
|
|
|
|
address print out the monero public address
|
|
|
|
mine start the miner
|
|
|
|
wallet open the monero wallet
|
2024-12-31 10:09:04 +00:00
|
|
|
help show this help information"
|
|
|
|
;;
|
2021-08-31 06:25:02 +00:00
|
|
|
*)
|
2024-12-31 10:09:04 +00:00
|
|
|
echo "Invalid command '$1'. Please run with the 'help' option."
|
|
|
|
;;
|
2021-08-31 06:25:02 +00:00
|
|
|
esac
|