diff --git a/unlockutxos.sh b/unlockutxos.sh new file mode 100755 index 0000000..cea46e9 --- /dev/null +++ b/unlockutxos.sh @@ -0,0 +1,13 @@ +#!/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