Created
September 12, 2017 09:45
-
-
Save buzztiaan/9fc9f33f0bf4cd8056432ad0174339c8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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