4 from electrum import TcpStratumInterface
9 print "usage: get_history <bitcoin_address>"
12 i = TcpStratumInterface('electrum.novit.ro', 50001)
15 i.send([('blockchain.address.get_history',[addr])])
19 r = i.responses.get(True, 100000000000)
20 except KeyboardInterrupt:
22 method = r.get('method')
23 if method == 'blockchain.address.get_history':
24 confirmed = unconfirmed = 0
27 print item['tx_hash'], item['value']