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.
13 lines
360 B
13 lines
360 B
#!/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
|
|
|