Created
February 17, 2020 22:39
-
-
Save dvdbng/9a5dd993e14fbe42ca95e90f4807faca to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Usage: ./btc-balance address | |
satoshis="$(curl https://insight.bitpay.com/api/addr/"$1"/balance)" | |
btc="$(echo "$satoshis/100000000" | bc -l)" | |
echo $btc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment