Post
Topic
Board Development & Technical Discussion
Re: Check Balance of Multiple Bitcoin Addresses ( Non py, Non Linux )
by
Redawn
on 30/12/2014, 14:53:18 UTC
-snip-

Thanks bro..can you help me with this blocktrail. Can you post a simple example of 2 btc adresses.

Not as a finished tool, no. I dont have an API key and youd need your own anyway. They have examples with the docs for several languages and even provide libraries for python, PHP and NodeJS.

----

Edit:

Code:
#!/bin/sh

# run as ./chkblnc_curl in.txt
# one address per line in file

api_key=getYOURown

echo "..........................ADDRESS. - .BALANCE....."

while read line
do
    address=$line
    data="$(curl "https://api.blocktrail.com/v1/btc/address/$address?api_key=$api_key" -s | grep -o \"balance\":[0-9]* | grep -o [0-9]*)"
    echo "$address - $data Satoshi"
done < $1

This is exactly what I need!  We need more people like you. Thanks for your time! I will finish it.