Skip to content

Instantly share code, notes, and snippets.

@PastaPastaPasta
Created June 22, 2018 22:09
Show Gist options
  • Save PastaPastaPasta/5d36cfb4b8cf9c2bcf4cce63b0b1c64a to your computer and use it in GitHub Desktop.
Save PastaPastaPasta/5d36cfb4b8cf9c2bcf4cce63b0b1c64a to your computer and use it in GitHub Desktop.
from bitcoinrpc.authproxy import AuthServiceProxy, JSONRPCException
import time, os
print("Hello")
password = "d9060549bd53cda3fc0f891b5f4a586271d5ee6a180ade1ea2bfe3985ccc7b01"
user = "6594052d2802c63e763caad3afdd5a2babcdacc4daf47277ca91d4d050d25d16"
rpc_conn = AuthServiceProxy("http://%s:%s@localhost:9998" % (user, password))
count = 0
while True:
count += 1
time.sleep(5)
address = rpc_conn.getnewaddress()
print(count, rpc_conn.sendtoaddress(address, 0.001))
address = rpc_conn.getnewaddress()
count += 1
time.sleep(5)
print(count, rpc_conn.sendtoaddress(address, 0.001, "", "", True, False, False))
os.system("curl \"https://push.statuscake.com/?PK=2ef196fa4891bd3&TestID=3255983&time=0\"")
print( "" )
print(rpc_conn.getbestblockhash())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment