Skip to content

Instantly share code, notes, and snippets.

Created April 12, 2014 05:55
Show Gist options
  • Save anonymous/10520759 to your computer and use it in GitHub Desktop.
Save anonymous/10520759 to your computer and use it in GitHub Desktop.
hit the bitcoind server remotely via SSL in python
import requests
r=requests.get('https://127.0.0.1:8332',verify=False,data='{"jsonrpc":"1.0","id":"%s","method":"getinfo","params":[]}' % str(uuid1()),auth=('bitcoinrpc','password9'))
print r.content
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment