mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-23 17:47:31 +00:00
11 lines
250 B
Python
Executable file
11 lines
250 B
Python
Executable file
#!/usr/bin/env python
|
|
|
|
from electrum import TcpStratumInterface
|
|
|
|
i = TcpStratumInterface('ecdsa.org', 50001)
|
|
i.start()
|
|
i.send([('blockchain.numblocks.subscribe',[])])
|
|
|
|
while True:
|
|
r = i.responses.get(True, 100000000000)
|
|
print r.get('result')
|