Skip to content

Instantly share code, notes, and snippets.

@buzztiaan
Created September 12, 2017 09:45
Show Gist options
  • Save buzztiaan/9fc9f33f0bf4cd8056432ad0174339c8 to your computer and use it in GitHub Desktop.
Save buzztiaan/9fc9f33f0bf4cd8056432ad0174339c8 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
from bitcoinrpc import authproxy
import pprint
import sys
import datetime
import pandas as pd
import ast
def ts(u):
return datetime.datetime.fromtimestamp( u ).strftime('%Y-%m-%d %H:%M:%S')
class Locker(object):
def __init__(self):
self.bitcoin = authproxy.AuthServiceProxy('http://user:pass@localhost:port/')
def alltx(self):
all = self.bitcoin.listtransactions('*', 99999, 0)
for i in all:
print i
l = Locker()
l.alltx()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment