pyblock/Python-BlockClock.py
2020-05-06 16:36:04 -03:00

15 lines
470 B
Python

import os
import time as t
def getblock(): #get access to bitcoin-cli with the command getblockchaininfo
bitcoincli = "PUT YOUR BITCOIN-CLI PATH WITH THE ARGUMENT 'getblockchaininfo'"
os.system(bitcoincli)
def clear(): #clear the screen
os.system('cls' if os.name=='nt' else 'clear')
while True: #Loop
clear() #call clear function that clears the screen
getblock() #call getblock function
t.sleep(3) #pause the loop for 3 seconds