You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1.0 KiB
Bash
41 lines
1.0 KiB
Bash
6 days ago
|
#!/bin/bash
|
||
|
|
||
|
export WALLET_CREDS="${1}"
|
||
|
export DAEMON_URI="${2}"
|
||
|
export WALLET_FILE="/data/wallet"
|
||
|
export PASSWORD_FILE="/data/password"
|
||
|
|
||
|
sleep 2
|
||
|
|
||
|
env
|
||
|
set -x
|
||
|
|
||
|
# Create new wallet if it doesn't exist
|
||
|
if [[ ! -f ${WALLET_FILE} ]]; then
|
||
|
echo $WALLET_CREDS > ${PASSWORD_FILE}
|
||
|
wownero-wallet-cli \
|
||
|
--password "${WALLET_CREDS}" \
|
||
|
--generate-new-wallet ${WALLET_FILE} \
|
||
|
--daemon-address ${DAEMON_URI} \
|
||
|
--password-file ${PASSWORD_FILE} \
|
||
|
--trusted-daemon \
|
||
|
--use-english-language-names \
|
||
|
--mnemonic-language English \
|
||
|
--command status
|
||
|
fi
|
||
|
|
||
|
# Run RPC wallet
|
||
|
wownero-wallet-rpc \
|
||
|
--daemon-address ${DAEMON_URI} \
|
||
|
--wallet-file ${WALLET_FILE} \
|
||
|
--password-file ${PASSWORD_FILE} \
|
||
|
--rpc-bind-port 8000 \
|
||
|
--rpc-bind-ip 0.0.0.0 \
|
||
|
--disable-rpc-login \
|
||
|
--confirm-external-bind \
|
||
|
--log-file ${WALLET_FILE}.rpc.log \
|
||
|
--log-level 0 \
|
||
|
--non-interactive \
|
||
|
--trusted-daemon \
|
||
|
--tx-notify="/usr/bin/curl -X GET http://btcpayserver:49392/monerolikedaemoncallback/tx?cryptoCode=xmr&hash=%s"
|