Skip to content

Instantly share code, notes, and snippets.

@dvdbng
Created February 17, 2020 22:39
#!/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