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
321 B

#!/bin/bash
# Optionally just get the cli 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} listunspent | jq -r '.[].amount' | wc -l)"
fi
done