You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
360 B
14 lines
360 B
6 years ago
|
#!/bin/bash
|
||
|
cd "${BASH_SOURCE%/*}" || exit
|
||
|
|
||
|
# Optionally unlock UTXOs for a single coin
|
||
|
# e.g "KMD"
|
||
|
specific_coin=$1
|
||
|
|
||
|
./listcoins.sh | while read coin; do
|
||
|
if [[ -z "${specific_coin}" ]] || [[ "${specific_coin}" = "${coin}" ]]; then
|
||
|
cli=$(./listclis.sh ${coin})
|
||
|
echo "${coin}: $(${cli} lockunspent true $(${cli} listlockunspent | jq -c .))"
|
||
|
fi
|
||
|
done
|