Skip to content

Instantly share code, notes, and snippets.

@tangentstorm
Created March 24, 2015 10:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tangentstorm/133c1a55be0cfbd9ad7c to your computer and use it in GitHub Desktop.
Save tangentstorm/133c1a55be0cfbd9ad7c to your computer and use it in GitHub Desktop.
#!/usr/bin/env python2.7
import pprint as pp
import pyjsonrpc as pj # pip-2.7 install python-jsonrpc
h=pj.HttpClient(url="http://gbt.mining.eligius.st:9337/",username="x",password="x")
d=h.call("getblocktemplate",id=0)
pp.pprint(d)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment