Created
December 12, 2013 21:22
-
-
Save gabrielbauman/7935696 to your computer and use it in GitHub Desktop.
Quick, dumb script that outputs the balance of a Litecoin address.
This file contains 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/sh | |
# | |
# Check the balance of a Litecoin address by querying explorer.litecoin.net. | |
# Drop this into /usr/local/bin and make it executable. | |
# Needs curl. | |
# | |
# Helpful? LWSHbKEHT18WX93zrSjBhc1AnxC4UCmbCt | |
if [ "$#" -ne 1 ]; then echo "Usage: litecoin_balance LTC_ADDRESS"; exit 1; fi; | |
curl "http://explorer.litecoin.net/address/${1}" 2>/dev/null | grep -m1 Balance | sed -e 's/<[^>]*>//g' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
massive-sansa