Skip to content

Instantly share code, notes, and snippets.

@assafshomer
Created September 2, 2020 10:33
Show Gist options
  • Save assafshomer/0f56cf4498780fbc4215cf9a40e49e0c to your computer and use it in GitHub Desktop.
Save assafshomer/0f56cf4498780fbc4215cf9a40e49e0c to your computer and use it in GitHub Desktop.
Get Address Balance without Index
> sudo chmod a+wx utxo.sh
> sudo chmod a+wx address.sh
> sudo chmod a+wx balance.sh
>./balance 1myaddress 
#!/usr/bin/env bash
./utxo 'addr('$1')'
#!/usr/bin/env bash
./address $1 | jq -r '.total_amount'
#!/usr/bin/env bash
bitcoin-cli scantxoutset start '["'"$1"'"]'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment