git://git.novaco.in
/
electrum-nvc.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
PROTOCOL_VERSION
[electrum-nvc.git]
/
scripts
/
get_history
1
#!/usr/bin/env python
2
3
import sys
4
from electrum import Interface
5
6
try:
7
addr = sys.argv[1]
8
except:
9
print "usage: get_history <bitcoin_address>"
10
sys.exit(1)
11
12
i = Interface({'server':'webbtc.com:50001:t'})
13
i.start()
14
h = i.synchronous_get([ ('blockchain.address.get_history',[addr]) ])[0]
15
for item in h:
16
print item['tx_hash'], item['height']
17