Advertisement
JudeAustin

I think this works!

Apr 8th, 2014
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. def balance_io(cls, address):
  2. h = urllib2.urlopen('http://btc.blockr.io/api/v1/address/info/%s' % address)
  3. json = simplejson.load(h)
  4. data = json['data']
  5. f = data['balance']
  6. return f
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement