Skip to content

Instantly share code, notes, and snippets.

@gabrielbauman
Created December 12, 2013 21:22
Show Gist options
  • Save gabrielbauman/7935696 to your computer and use it in GitHub Desktop.
Save gabrielbauman/7935696 to your computer and use it in GitHub Desktop.
Quick, dumb script that outputs the balance of a Litecoin address.
#!/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'
Copy link

ghost commented Dec 12, 2013

massive-sansa

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment