4 from electrum import Interface
9 print "usage: get_history <bitcoin_address>"
12 i = Interface({'server':'electrum.novit.ro:50001:t'})
14 i.send([('blockchain.address.get_history',[addr])])
18 r = i.responses.get(True, 100000000000)
19 except KeyboardInterrupt:
21 method = r.get('method')
22 if method == 'blockchain.address.get_history':
23 confirmed = unconfirmed = 0
26 print item['tx_hash'], item['value']