baf4548867fe1abe79bee2492475cc82eb639da8
[electrum-nvc.git] / blocks
1 #!/usr/bin/env python
2
3 import interface
4
5 i = interface.TcpStratumInterface('ecdsa.org', 50001)
6 i.start()
7 i.send([('blockchain.numblocks.subscribe',[])])
8
9 while True:
10     r = i.responses.get(True, 100000000000)
11     print r.get('result')